Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Accessing array variables

(0) ShareShare
ReportReport
Posted on by 315

Hi,

 

I need guidance to fetch each Asset values from the array variable Asset as defined below.

 

Can someone help how can I get the asset values from the variable ? I need to save the each item from the array variable in an compose action.

 

Prathameshpatka_0-1681463421016.png

 

  • Prathameshpatka Profile Picture
    315 on at
    Re: Accessing array variables

    @Expiscornovus 

     

    That worked ! thank you

  • Verified answer
    Expiscornovus Profile Picture
    32,092 Most Valuable Professional on at
    Re: Accessing array variables

    Hi @Prathameshpatka,

     

    In that case you can use the <br> html tag as a separator instead of the , character.

     

    Try and add the below via the expression tab:

    join(variables('Asset'), '<br>')

     

    join_expression_br.png

  • Prathameshpatka Profile Picture
    315 on at
    Re: Accessing array variables

    @Expiscornovus 

     

    Prathameshpatka_0-1681464314777.png

     

     

    I basically need to have the asset value separated out as I want them to be displayed one below the other in the message I hit on the channel . Right now in the message post it is displaying as below :


    New Incoming Information from WSP; 233334 Test

    Hello @Pro Please find a link for latest Incoming Information for Project W from: WSP. Asset: ["M0000-Monolith","P0100-Adventure Centre","P0000-Plateau Assets","P0500-Destination Spa"]

     

    I need to display it as below :

    Asset: ["M0000-Monolith",

    "P0100-Adventure Centre",

    "P0000-Plateau Assets",

    "P0500-Destination Spa"]

     

     
  • Expiscornovus Profile Picture
    32,092 Most Valuable Professional on at
    Re: Accessing array variables

    Hi @Prathameshpatka,

     

    If you are append the items they should all be there in the Asset variable (outside the loop).

     

    You can for example join them together with a comma character as text (string value).

     

    Try this expression in the compose action (outside the apply to each loop)

     

    join(variables('Asset'), ', ')

     

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