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

Community site session details

Session Id : t1MlyrCmBpOWOWQahpfRxP
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?

Like (0) ShareShare
ReportReport
Posted on 16 Feb 2023 21:11:19 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 

I have the same question (0)
  • jdoss Profile Picture
    458 on 16 Feb 2023 at 21:42:11
    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 Moderator on 16 Feb 2023 at 21:22:49
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 854 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 525 Moderator

#3
trice602 Profile Picture

trice602 318 Super User 2025 Season 2

Last 30 days Overall leaderboard