Ws.SharePointUsers
Winshuttle Designer Controls
- Supported InfoPath controls
- Ws.Assignment
- Ws.Attachment
- Ws.Button
- Ws.Comment
- Ws.CurrentUser
- Ws.FormCompletionDelegation
- Ws.FormName
- Ws.FormValidation
- Ws.History
- Ws.Lookup
- Ws.ProcessControl
- Ws.Query
- Ws.SAP Field Lookup
- Ws.SharePointUserMap
- Ws.SharePointUsers
- Ws.URL
- Ws.ViewInfo
- Ws.WebService
- Ws.WorkflowParticipant
- Wso.WebService Lookup
The Ws.SharePointUsers control allows you to retrieve the members of a SharePoint group and display details about them in a repeating table. The repeating table can then be used as a data source for populating a drop-down list, and in conjunction with the Ws.WorkflowParticipant control to assign swimlanes based on the details that are retrieved from the group.
Download example (.wssln file)
** You may use any SharePoint Group available within the Site Collection as long as the SharePoint Group has at least one set of permissions to the FormEx Site.
Ws.SharePointUsers properties
Property | Description |
Groups | The name of the group(s) you want to work with. |
Site | The SharePoint site containing the group you want to work with. |
XPath Email Location | The repeating table field to receive the email addresses retrieved from the group. |
XPath Full Name Location | The repeating table field to receive the names retrieved from the group. |
Path Group Name Location | The repeating table field that will receive the name of the group. |
XPath Login Name Location | The repeating table field to receive the login names retrieved from the group |
Configuring the Ws.SharePointUsers control
- Add a repeating to your form. You will need 1 field in your repeating table per item you want returned.
Possible Values are:
- SharePoint Group
- Login Name
- Full Name
- Email Address
- Add the Ws.SharePointUsers control to your form and go into its properties. The Ws.SharePointUsers control must be inside your repeating table.
- In the Site field, insert the link to your FormEx Site.
- In the Groups Field, enter the names of the SharePoint Groups in which you would like to return.
The Groups section in this control is case sensitive so make sure your Group entry matches exactly how it is displayed in SharePoint. If you have more than one group in which you are returning, you may use a comma-separated list without spaces in between groups.
Example: CENTRAL Site Administrators, Marc Wilson_s CENTRAL Site Owners
- In the XPath Login Name Location field, insert the XPath to the InfoPath field in your form that will be populated with the value of the Login Name.
- In your Field Window on the right-hand side of InfoPath, select the field you want and right click.
- Select Copy XPath
- Go back into the Ws.SharePointUsers properties.
- Paste the XPath into the XPath Login Name Location field.
- For the XPath Full Name Location, follow the same steps in Step 5 to retrieve the XPath and paste it into the XPath Full Name Location field.
- For the XPath Email Location, follow the same steps in Step 5 to retrieve the XPath and paste it into the XPath Email Location field.
- For the XPath Group Name Location, follow the same steps in Step 5 to retrieve the XPath and paste it into the XPath Group Name Location field.