Task assigned to user or current user groups in SharePoint 2010 using CAML query

InfoPath alternatives for form designing SharePoint

 In this post we will discuss how we can assigned task to current user groups using CAML query.

Also you can check out some posts on:
Follow below steps:
1. Open your site in SharePoint designer 2010.
2. Go to List and Libraries option.
3. Select your Task List see in fig.
 Task assigned to user or current user groups in SharePoint 2010 using CAML query
Task assigned to user or current user groups in SharePoint 2010 using CAML query
4. Open the task list in advance mode or .aspx extension file.
5. Find the view  tag under this <Query> option
6. Change by the following code only under <Query> tag
<View Name=……
     <Query>
           <Where>
               <Or>
                    <Membership Type=”CurrentUserGroups”>
                                   <FieldRef Name=”AssignedTo” />
                    </Membership>
                   <Eq>
                   <FieldRef Name=”AssignedTo” />
                  <Value Type=”Integer”>
                       <UserID Type=”Integer”/>
                  </Value>
                 </Eq>
           </Or>
</Where>
</Query>
7. Save and check out.

Similar SharePoint 2013 Tutorials


About Navneet Singh

I am Navneet Singh, Working at C3it software solutions pvt. ltd. in Pune. My core skills are SharePoint 2013, Office 365, SharePoint 2010, SharePoint Designer, SharePoint Designer Workflow, Nintex Workflow, Infopath, Webpart, CSOM/SSOM, Power-shell, C#, ASP.NET and SQL Server.

View all posts by Navneet Singh →

Leave a Reply