cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User II
Super User II

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
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
Highlighted
Super User II
Super User II

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

Highlighted
Super User II
Super User II

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.

Highlighted
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?

Highlighted
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

Highlighted
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

Highlighted
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
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (6,746)