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

Announcements

News and Announcements icon
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,415 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 820

#3
Haque Profile Picture

Haque 505

Last 30 days Overall leaderboard