cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
agonsales
Level: Powered On

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
Community Support Team
Community Support Team

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
Community Support Team
Community Support Team

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,433)