Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

How can I get this Append to Array variable from an apply to each to list in a single message?

(0) ShareShare
ReportReport
Posted on by 45

Hello Community,

 

I have a flow that pulls Zendesk tickets using a HTTP get request and then formats the custom fields in an Array inside an apply to each.

 

The flow is like this:

Screenshot 2023-02-16 at 21.00.26.pngScreenshot 2023-02-16 at 21.06.15.png

 

And the outputs appear like this for an example as there is currently 2 tickets that match the criteria from the HTTP request:

 

Screenshot 2023-02-16 at 20.59.49.pngScreenshot 2023-02-16 at 20.59.56.png

 

Essentially, how could I get any all of the outputs to list inside a message I want to post to a teams message like below as an example:

 

Current outages:

1 - White City - p3 - passive_outage - Residents Impacted: 6 - Businesses Impacted: 0

2 - Redbridge 14 - p2 - passive_outage - Residents Impacted: 51 - Businesses Impacted: 0

 

Above is just an example, some days there may be 0 tickets and other days there could be 10 or more when the flow runs. 

 

I'd want them listed in 1 message thats posted rather than multiple or one for each output. 

 

Thanks,

 

Jack

 

@DamoBird365 

  • jdoss Profile Picture
    458 on at
    Re: How can I get this Append to Array variable from an apply to each to list in a single message?

    You could also lose the array and use a string variable instead. Then you can use the action 'Append to string variable' and just create the wording and insert it wherever. You would want to hit an extra newline after each append to make sure they don't run together.

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on at
    Re: How can I get this Append to Array variable from an apply to each to list in a single message?

    After the Apply to each you can use a join expression to join your array items. I’d try joining with a <br> tag assuming the output would be HTML.

     

    join(YourArrayVariable, ‘<br>’)

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1