While working in a "Start an Approval" section of my workflow I attempt to put the DisplayName of a people field in the Details section. When I do this the section changed to a "Apply to Each" section. Very frustrating. I just want to put the display name of a person in the Details.
I tried a workaround by calculating the display name to text in a calculated field. Works well in the list, but when I pick that field to display in the details section it is blank, though there is data there in the list.
Solved! Go to Solution.
Hi @twiggman,
Could you please share a screenshot of your flow's configuration?
Could you please show a bit more about the Person field that you mentioned? Is it a Person or Group type column in your SharePoint list?
Further, do you have enabled the "Allow multiple selections" option for the People field in your SharePoint list?
I suppose that the People field that you mentioned is a Person or Group type column in your SharePoint list and you have enabled the "Allow multiple selections" option for this column, is it true?
I have made a test on my side, if you have enabled the "Allow multiple selections" option for the Person or Group type column in a SharePoint list, when select the DisplayName dynamic content of the Person column, the "Apply to each" action would be added automatically. Because the Person column dynamic content returned is an array rather than an object.
You could consider take a try to disable the "Allow multiple selections" option for the Person column in your SharePoint list, then edit your flow and re-choose the DisplayName dynamic content of the person column. After that, try your flow again to check if the issue is solved.
If you want to enable the "Allow multiple selections" option for the Person column in your SharePoint list and want to put the DisplayName dynamic content of the Person column into the Details field of the "Start an approval" action, I have made a test on my side, please take a try with the following workaround:
concat(item()?['DisplayName'],';',variables('AllDisplayName'))
Add a "Set variable" action, Name choose AllDisplayName, Value set to output of the "Compose" action.
Note: The Executor column is a Person or Group type column in my SharePoint list, which has enabled the "Allow multiple selections" option.
Image reference:
The flow works successfully as below:
Best regards,
Kris
Hi @twiggman,
Could you please share a screenshot of your flow's configuration?
Could you please show a bit more about the Person field that you mentioned? Is it a Person or Group type column in your SharePoint list?
Further, do you have enabled the "Allow multiple selections" option for the People field in your SharePoint list?
I suppose that the People field that you mentioned is a Person or Group type column in your SharePoint list and you have enabled the "Allow multiple selections" option for this column, is it true?
I have made a test on my side, if you have enabled the "Allow multiple selections" option for the Person or Group type column in a SharePoint list, when select the DisplayName dynamic content of the Person column, the "Apply to each" action would be added automatically. Because the Person column dynamic content returned is an array rather than an object.
You could consider take a try to disable the "Allow multiple selections" option for the Person column in your SharePoint list, then edit your flow and re-choose the DisplayName dynamic content of the person column. After that, try your flow again to check if the issue is solved.
If you want to enable the "Allow multiple selections" option for the Person column in your SharePoint list and want to put the DisplayName dynamic content of the Person column into the Details field of the "Start an approval" action, I have made a test on my side, please take a try with the following workaround:
concat(item()?['DisplayName'],';',variables('AllDisplayName'))
Add a "Set variable" action, Name choose AllDisplayName, Value set to output of the "Compose" action.
Note: The Executor column is a Person or Group type column in my SharePoint list, which has enabled the "Allow multiple selections" option.
Image reference:
The flow works successfully as below:
Best regards,
Kris
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
14 | |
14 | |
10 | |
7 | |
6 |
User | Count |
---|---|
20 | |
16 | |
10 | |
9 | |
8 |