web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to Get Array value...
Power Automate
Unanswered

How to Get Array values in Send an Email (V2) Body

(0) ShareShare
ReportReport
Posted on by 2

Hi, I am fairly new to flow and was wondering if someone could help.

 

I am trying to create an email notification for Planner Task on Condition based (Start and Due dates). I've values (Service Owner, Services, Due Date) in Append to array variable that will be used in Email body. But I can't able to get these value from array. How to link between Apply to each and Send an Email (V2).

 

TousifShahid_0-1649826371994.png

 

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @TousifShahid 

    Outside your apply to each loop . Add a new step Create HTML Table  and pass the output from the array to it and then use the output from the Create HTML Table in your email.

     

  • TousifShahid Profile Picture
    2 on at

    Thanks Mira for prompt reply.

     

    Create HTML Table merge all values of array variable and repeat these in send emails. But I need separate values from array variable to that should me include in Email body.

     

    I really appreciate your kind support.

     

    Thanks

  • Aysa Profile Picture
    8 on at

    try this:

     

    1. Use Compose action and inject your array as input

    2. Using expression, Change Compose output into string, string(outputs(‘Compose’))

    3. Using expression, separate( delimit) your Compose output from step 2 by comma, split(output(‘Compose_2’), ‘,’)

    4. Then pass the output of step 3 to your Append to array variable action.

    5. finally pass the output of step 4 to your send an email action

     

    —————-/////

    If I have answered your question, please mark your post as Solved.

  • jdoss Profile Picture
    458 on at

    If you are wanting to send 1 email for every part in the array, just move the send email into the apply to each, where you have the append to array variable. And then use those values in the body of the email. Then you will send an email every time your condition matches in the apply to each. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard