Notifications
Announcements
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.
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'), ', ')
@Expiscornovus
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 :
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"]
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>')
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 538 Super User 2025 Season 2
Tomac 405 Moderator
abm abm 252 Most Valuable Professional