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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Remove characters from...
Power Automate
Answered

Remove characters from Array to just leave a value

(0) ShareShare
ReportReport
Posted on by 44
Hi, I currently have an array that I want to use in a URL parameter.
 
The Array output is like this:
 
{"body":{"id":"0;"},{"id":"1;"},{"id":"2;"}}
 
If I try and store this in a variable and put it in a URL, it composes fine but when the URL is used in an email, this data is cut off. The end of the URL looks like:
 
&Qs=[{
 
Is there a way to remove all of the excess characters from this to just leave the numbers, so I can get something like
 
&Qs=1,2,3
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Fredrik_A Profile Picture
    3,570 Super User 2026 Season 1 on at
    Hello,
     
    try this. You input your array as input to the select action, and then map it to the column you want (In this case id).
     
    Then you simply join it, like the action shown last in the image below.
     
     
    If my response solved your issue, please mark it as ✅ Accepted Answer and give it a like.
  • Verified answer
    Chriddle Profile Picture
    8,672 Super User 2026 Season 1 on at
    In just one expression using xpath:
    join(
    	xpath(
    		xml(
    			addProperty(
    				json('{}'),
    				'Root',
    				addProperty(
    					json('{}'),
    					'Item',
    					outputs('Compose').body
    				)
    			)
    		),
    		'//Item/id/text()'
    	),
    	','
    )

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard