Task list are commonly used by workflows (i.e OOTB SharePoint Workflows, Nintex Workflows etc.) within SharePoint. In some scenarios developers uses same tasks list for managing tasks for different workflows to provide end-users to interact with all their pending tasks from one screen.These tasks may be assigned to any individual or any group of users.In this case a user filter needs to be implemented so that user can see tasks only assigned to him or assigned to any user group that he/she belongs to.
Filtering Tasks based on User or Group in SharePoint
Technorati Tags: SharePoint,WebPart,CAML,ShareGears,List,List View,Filter,User Permissions,User,Groups,Tasks,Workflows
Filtering SharePoint List View using CAML
This post will illustrate how you can apply filters on SharePoint list views using CAML. There are many ways you can apply filter on any list view. CAML gives you more control to apply complex filters over a list view. For example you may have a case to filter Tasks based on “Assigned To” field(“Assigned To” may contain any user or any SharePoint group) and you only want user or group from this field may able to see that particular list item. To achieve such kind of filter the only way is you use CAML.
Subscribe to:
Posts (Atom)