cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Returning only the text

I'm building a flow where I want to get the description text from "Describe Image Content" - through using SELECT and JOIN operations to parse the output string I'm left with a string like: 

 

   {"text":"a fighter jet flying through a blue sky"}

 

Flow.png

 

All I want now is simply:   a fighter jet flying through a blue sky
 
I've tried all sorts of functions, connectors, and odd combinations, but I can't get this result, is there a way to get this string only? And by the way, would be really handy to to skip the SELECT and JOIN steps... but it seems very unlikely Smiley LOL
 
Thanks in advance!
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Returning only the text

Hi @agonsales ,

 

Do you want to get the string a fighter jet flying through a blue sky from string {"text":"a fighter jet flying through a blue sky"}?

If yes, you could refer to my screenhsot below to extract the string:

1.png

The expression in the Compose as below:

first(split(last(split(variables('string1'),'"text":"')),'"}'))

The flow would run successfully as below:

2.png

 

Please let me know if your problem could be solved.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Returning only the text

Hi @agonsales ,

 

Do you want to get the string a fighter jet flying through a blue sky from string {"text":"a fighter jet flying through a blue sky"}?

If yes, you could refer to my screenhsot below to extract the string:

1.png

The expression in the Compose as below:

first(split(last(split(variables('string1'),'"text":"')),'"}'))

The flow would run successfully as below:

2.png

 

Please let me know if your problem could be solved.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Users online (7,844)