I want to create a CAML Query like this
(status= waiting for approval && Requestor Manager = UserID)or(status= stage2 && Approver= UserID)
Please let me know what i am wrong here
<Where>
<And>
<Or>
<And>
<Eq>
<FieldRef Name='RequetorsManager' />
<Value Type='Integer'>
<UserID />
</Value>
</Eq>
<Eq>
<FieldRef Name='Status' />
<Value Type='Choice'>Waiting For Approval</Value>
</Eq>
</And>
<Eq>
<FieldRef Name='Approver' />
<Value Type='Integer'>
<UserID />
</Value>
</Eq>
</Or>
<Eq>
<FieldRef Name='Status' />
<Value Type='Choice'>Stage2</Value>
</Eq>
</And>
</Where>