cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rsparks Helper IV
Helper IV

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

Community Support
Community Support

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

Highlighted
rsparks Helper IV
Helper IV

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 Helper IV
Helper IV

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?

Community Support
Community Support

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 Helper IV
Helper IV

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
Community Support

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (7,629)