ModStat support

May 25, 2016 at 8:29 AM
Trying to create rule like
<Eq><FieldRef Name='_ModerationStatus' /><Value Type='ModStat'>3</Value></Eq>
but there is no support to ModStat Value Type. Any good workarounds to change the value type keeping in mind I'm dynamically pushing the Expressions?

camlExpressions.push(CamlBuilder.FromXml(CamlBuilder.Expression().IntegerField("_ModerationStatus").EqualTo(3).ToString().replace("Integer", "ModStat")));        
doesn't work as FromXml isn't meant for Expressions.
May 25, 2016 at 8:31 AM
Looks like one workaround is
        var modStat = CamlBuilder.Expression().IntegerField("_ModerationStatus").EqualTo(3);
        modStat.builder.tree[2].ValueType = "ModStat";
Marked as answer by jpalo on 5/25/2016 at 1:31 AM