cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rsparks
Level: Powered On

Forcing an approval email to display ALL choice values from a "choice" column field

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. 

 

1.PNG

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: Forcing an approval email to display ALL choice values from a "choice" column field

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

View solution in original post

Highlighted
Community Support Team
Community Support Team

Re: Forcing an approval email to display ALL choice values from a "choice" column field

 

Hi @rsparks ,

 

You can change the variable to an array, like this:

6.PNG

Note that you need to add a space bar after the comma of Join with.

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
Super User
Super User

Re: Forcing an approval email to display ALL choice values from a "choice" column field

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

View solution in original post

rsparks
Level: Powered On

Re: Forcing an approval email to display ALL choice values from a "choice" column field

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?

 

2.PNG

Super User
Super User

Re: Forcing an approval email to display ALL choice values from a "choice" column field

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.

rsparks
Level: Powered On

Re: Forcing an approval email to display ALL choice values from a "choice" column field

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:

2.PNG

With this next one showing how the items display in the approval email:

 

1.PNG

 

How can I add commas and spaces between each item?

Highlighted
Community Support Team
Community Support Team

Re: Forcing an approval email to display ALL choice values from a "choice" column field

 

Hi @rsparks ,

 

You can change the variable to an array, like this:

6.PNG

Note that you need to add a space bar after the comma of Join with.

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

rsparks
Level: Powered On

Re: Forcing an approval email to display ALL choice values from a "choice" column field

I can't see the option to add in the variable in the From field:

 

cant see.PNG

Community Support Team
Community Support Team

Re: Forcing an approval email to display ALL choice values from a "choice" column field

 

Hi @rsparks ,

 

Please check my post and change string variable to array variables.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (4,312)