Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

 

  • jdoss Profile Picture
    458 on at
    Re: How to Get Array values in Send an Email (V2) Body

    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. 

  • Aysa Profile Picture
    8 on at
    Re: How to Get Array values in Send an Email (V2) Body

    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.

  • TousifShahid Profile Picture
    2 on at
    Re: How to Get Array values in Send an Email (V2) Body

    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

  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on at
    Re: How to Get Array values in Send an Email (V2) Body

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

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow