I have a workflow that I'm trying to get a person or group field to populate with a SharePoint group depending on what team is selected from the form. I need to send notification to the group of an assigned task. The field does not get set in the workflow, but after the workflow completes the field is populated with the correct group name. What's the deal?
Solved! Go to Solution.
How are you choosing the team in the form? Is it via a list item update after outcome, or via a people picker field on the task form ?
If you're doing it via an update, have you got a "Commit Pending Changes" following it?
I am using an Update Item action. Yes I put a Commit Pending Changes after it. I made sure the Person or Group type specifies People and Groups. Pulling my hair out here!
@rogerb ....how you're generating the name of the group? After generating the name of the group and before updating it.....can you try to log it in history and see what value is giving you? Also, I'll put that value between quotes to see what exactly I'm getting.
I am just using the people picker in the Update Item action. Then I tried setting a variable with the group, that didn't work either. I will try logging the variable to the history list now.
Attached is the screenshot of what my Update Item looks like. I use the Browse function to find the SharePoint group name.
FYI, I typed TEAM NAME in there just as an example. The actual SharePoint group I was using resolves and is underlined.
@rogerb ....In your original post, you mentioned that based on the team selected on the form, the workflow populates the SP group, but based on your screenshot it seems you're hardcoding the SP group (which is confusing for me !!!)
Instead why don't you use team field (item property) and build string action to build your SP group name and store it in SLT variable and use that variable to assign permission?