Prior to sending an approval request from a workflow to a People and Groups group, I'd like to check that the group has members. How would I do this using worklfow actions?
is it sharepoint group?
then you will have to use UserGroup.asmx webservice, method GetUserCollectionFromGroup might be one that you need to call
https://msdn.microsoft.com/en-us/library/websvcusersgroups.usergroup_members.aspx
So I successfully brought back the xml code into the 'Call Web Service' action during a 'Run Now'. I can't work out how to place that xml code into a variable so that I can parse it.
How do I get the result back for parsing? I need the Names in the group.
And when I attempt to Specify Elements it doesn't go down past GetUserCollectionFromGroupResult. And I get an error when trying to capture the m:GetUserCollectionFromGroupResult
(ERROR: Failed to invoke web service. 'undefined/undefined:m:GetUserCollectionFromGroupResult' has an invalid token.)
Failed to invoke web service. 'undefined/undefined:m:GetUserCollectionFromGroupResult' has an invalid token.
let to return it default value.
then use Query XML action to parse returned result (varGroupUsers variable).
xpath like this should give you Names
/defaultNS:GetUserCollectionFromGroup/defaultNS:Users/defaultNS:User/@Name
Hi Marian
That's what I did. varGroupUsers is always empty after calling the web service. Not sure why.
Also, there are many names in the group, so I'd like to get them all back somehow into a collection variable.
do you have anything configured in 'Result processing'? - leave it empty
what's the data type of varGroupUsers variable? - should be multiline text
try to setup error handling and mail error message to yourself whether there is not an error reported from webservice call.
multiline text was good information. Found the following link that explained it all clearly.
How to Get All the Users From a Specific SharePoint Group Using NINTEX Workflow
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.