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

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!

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

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.

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.

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,619)