I have a Condition that checks to see if the item is for Company A or Company B. If Company A, the global variable CFO is set to Person; if Company B, CFO is set to Group. Both names resolve when 'Check Names' is clicked.
When the workflow runs, it errors "User Not Found". The comment displays the following: Set 58;#eCARCFO_Test as CFO.
I am new to both SharePoint and Nintex. While I am acutely aware that I can just create two different Flexi Tasks (one for Company A and one for Company B), it seems like I am replicating unnecessarily when the only difference is the person/group to whom the task will be assigned.
This must be a fairly simple resolution to someone more experienced than I.
How are you setting the variables and what is their source? It seems maybe you are pulling from a List Lookup because I see the ID of the item attached in front of the value - 58;#eCARCFO_Test. You could probably parse this out or try to obtain the value a different way, but I'd need to know more in order to off a suggestion as to how to pull this off. The other question is: are these values dynamic - meaning is there more than one group or person that you must choose from, or are they constant for their respective types (person or group)?
Can you please try to print variable value into "Log to History List" action before you use into Flexi Task. It will be helpful to know the actual value to see what is it trying to resolve?
Thank you for your reply.
I will try the "Log to History List" action. What is the difference in using this action instead of setting a message to log under the Common section?
I have the message to log on completion printing the value that is getting set, which is how I was able to see the 58;#eCARCFO_Test. The name of the group I am setting the variable to is eCARCFO_Test.
Thank you for your reply.
I created a Workflow Variable named CFO, type Person or Group, with a default name set to someone whose name was selected from the People Picker. Show on start form is not checked.
eCARCFO_Test is a Group that I created on the site with 2 names in it that I also selected from the People Picker. The value of the names in the group are constant.
Using the Set Variable action, I would like to set CFO dynamically depending on whether or not the item is a test item for Company A or Company B. If it's Company B, CFO is the group, if not, it is the person.
The solution to this will be pretty straight forward, I just need to understand the process a bit more.
For example: Since this is a list based workflow, you should create a column of type Person or Group so that you can store the value selected from the people picker into it. The people picker control will then show up under the "List Columns" tab on the form designer from which you can drag and drop it onto the form designer. This will automatically connect it to column you created and will store either the Person or Group that your form user selects when filling out the form.
If it is true that you are using a single people picker control to set the value of either this person or group, then you won't have to use Set Variable action in the workflow. You can access this value instead from using "Item Properties" and it will contain whatever value was selected from the form.
Does this help? If not, please post a picture of your form as well as your workflow so I can give you a more specific answer.
I understand what you are trying to do, our situation is similar, depending on workflow initiator the HRAdmin emails go to either an HR Admin group or HR General Admin Group. We've assigned a workflow variable to cater for this and are experiencing exactly the same issue.
Did you find an answer? We are potentially looking at not using sharepoint groups for this but maintaining our own lists for emails in a sharepoint list and assigning the variable from a list lookup.
...Further to this the workaround seems to be use a Single Line of Text as a workflow variable and assign either the group name or username only and let the Send Notification activity resolve this string to a person / group at runtime.
Hope this helps.