I have a powerapps form that takes advantage of the Sharepoint list column type "Choice". The user can make multiple selections, as the choices are surrounding vehicle accessories. The data displays properly in the powerapps form and the Sharepoint list, but I can't get all choices the user has made to show within an Approval email. The Approval email just shows the first item in the list of choices.
Currently it seems to send an approval email for each value selected in the list of choices. For example a user selects to have a first aid kit, fire extinguisher and roof racks. It will send through 3 approval emails, one for each.
Solved! Go to Solution.
Hey,
What you are doing is creating an approval for each selected value as its returned as an array.
Do the following:
- Approval Action (Delete the Value for now)
- move Approval Action outside of the loop
- At the top of the flow initilise a variable - i.e. varOptExtras
- Inside the loop choose Append a string value variable and select varOptExtras
- Set the Optional Extras Package Value
- Use varOptExtras in the approval email
Hi @rsparks ,
You can change the variable to an array, like this:
Note that you need to add a space bar after the comma of Join with.
Please take a try.
Best Regards,
Hey,
What you are doing is creating an approval for each selected value as its returned as an array.
Do the following:
- Approval Action (Delete the Value for now)
- move Approval Action outside of the loop
- At the top of the flow initilise a variable - i.e. varOptExtras
- Inside the loop choose Append a string value variable and select varOptExtras
- Set the Optional Extras Package Value
- Use varOptExtras in the approval email
Does the variable need to be a boolean or a string?
Also, I'm unable to select a name when appending to the string variable.
Does this look right?
it shoudl be string.
The value in your last action should be the one from sharepoint i.e. Optional Extras Package Value apart from that it looks good.
sometimes i get some weirdness like that way i do is delete the action, save the flow and go out and in again and see if it works OK.
Alright thanks, that works.
In the approval email it isn't separating the items propery. The first image is how they display in the sharepoint list:
With this next one showing how the items display in the approval email:
How can I add commas and spaces between each item?
Hi @rsparks ,
You can change the variable to an array, like this:
Note that you need to add a space bar after the comma of Join with.
Please take a try.
Best Regards,
I can't see the option to add in the variable in the From field:
Hi @rsparks ,
Please check my post and change string variable to array variables.
Best Regards,
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 |
---|---|
16 | |
14 | |
7 | |
6 | |
4 |
User | Count |
---|---|
24 | |
17 | |
10 | |
8 | |
7 |