cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
agonsales
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
v-alzhan-msft
Community Support
Community Support

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
v-alzhan-msft
Community Support
Community Support

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (27,680)