cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate III
Advocate III

Mail content dynamic variable from variable

I don't know if it is possible. Did some tests with no luck, but maybe someone has an idea 🙂

 

Is it possible to get variable defined in text from a field in SP to send in a mail?

 

for example:

I have a field "Title" and a field "MailData" in a sharepoint list.

The "Title" field containts : "bla bla"

The content of "MailData": "<p>Test: @{triggerBody()?['Title']}<p>" 

 

I have made a flow when an SP item is created it sends a email and I have only inserted the MailData field from the SP list as body.

then I want to be the result of the mail:

 

Test: bla bla

 

instead of 

 

Test: @{triggerBody()?['Title']}

 

5 REPLIES 5
Highlighted
Dual Super User III
Dual Super User III

Re: Mail content dynamic variable from variable

Hi @MP001 

 

Can you share a screenshot of the send email action of your flow. 

 

Please refer to the screenshot below: You can select the columns of the sharepoint list to be added to the email body from the dynamic selector.

vcbc.png

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Advocate III
Advocate III

Re: Mail content dynamic variable from variable

That isn't what I mean.

this still isn't dynamic. As the mailbody is quite static.

 

Sample of a flow:

Capture2.PNG

 

In the list it contains the variable itself , so you can generate dynamic mail contents.

 

Capture3.PNG

Highlighted
Community Support
Community Support

Re: Mail content dynamic variable from variable

Hi @MP001 ,

 

What’s the column type of MailData01?

 

How do you input value for each field of MailData01 likes “Test: @{triggerBody()?['Title']}”?

 

If you want to get the Title, you just need to select the dynamic content then use in the body.

 

Best regards,

Mabel

 

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

Re: Mail content dynamic variable from variable

This is a plain text field. 

The MailData01 is just a sample, I want to make dynamic mailbody from SP.

With the variables of the list or other list, defined in Flow.

Community Support
Community Support

Re: Mail content dynamic variable from variable

Hi @MP001 ,

 

Thanks for updating.

 

However, I am afraid that your scenario would be impossible to be achieved.

 

What you want could be simply achieved by using two dynamic contents, Title and mailData01.

 

A screenshot for your reference:

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
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

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new 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!

Top Solution Authors
Top Kudoed Authors
Users online (7,274)