Showing results for 
Search instead for 
Did you mean: 

Parse out URLS from JSON String

I am trying to parse a JSON string for multiple URLS in the below text from "HTTPS" to the ",". I have code working that grabs the first URL perfectly but I am unsure how to loop through and get all the URLS separated out.


Looking for four links formatted like this



Accepted Solutions

Here is how I solved it for others to leverage


View solution in original post

Super User
Super User

Hi @Steve0 


You want to use a select action. Make sure you turn on text mode for the select and insert the dynamic value for link. It will return and array of links. 


Here is how I solved it for others to leverage


Hi @Steve0 


Just an observation, looks like you're creating markdown, maybe for PVA?  You don't need the HTML to Text step as it removes HTML tags <br> <table> etc from raw HTML.  You are simply dealing with values from an object, which are already text strings in your case.


There is actually a post from this week about achieving this in PVA Solved: Re: PVA Return Sharepoint Files unable to Return I... - Power Platform Community (microsoft....


The select method I mentioned would look as follows:




The output of the select gives you an array of names and links in the markdown format and then you use join() to bring those objects together as a string.



If you want to add a return line to the string, you can join on decodeUriComponent('%0A').  The attached post also shows you how to bullet mark the list - if that's what you are looking for.


I noticed whilst testing this that PowerAutomate will sneakily remove the " " on the select when you return to the flow to edit.  The alternative to the screenshot I have provided is to construct a concat.




broken down that is:


Concat('[', //opening square bracket

item()?['{Name}'], //file name

'](', //closing square bracket and opening bracket

item()?['{Link}'], //file link

')') //closing bracket


Hope that helps with understanding - even if it's not used for your solution right now 🙂



Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,798)