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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Accessing array variables
Power Automate
Unanswered

Accessing array variables

(0) ShareShare
ReportReport
Posted on by 319

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

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    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'), ', ')

     

  • Prathameshpatka Profile Picture
    319 on at

    @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"]

     

     
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    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
    319 on at

    @Expiscornovus 

     

    That worked ! thank you

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard