cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mahmoodhsaud
Helper IV
Helper IV

How to integer or boolean value from parsed json output

Hi Everyone,

I parsed a JSON using the flow, the output of the JSON has integer and boolean values, but can't able to use it as dynamic content as it is not showing.

Is there any way to get the boolean or integer values from parsed JSON as dynamic content?

 

mahmoodhsaud_1-1622707170715.png

Thanks in advance,

Regards,

Mahmood

2 ACCEPTED SOLUTIONS

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

The dynamic content dialog automatically filters the available dynamic content by things like data type.  If the field you are filling in calls for a string, like the fields in the Create File action' then you will only see string content.  Try adding a Compose action to the flow and see if the integer and boolean fields don't show up for that.  If necessary you can then use the output of the compose later as dynamic content.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Pstork1
Dual Super User III
Dual Super User III

That depends on where you want to use the values.  As I said, they aren't showing up because the fields you are using require a string.  So it doesn't make sense to use a boolean or an integer there.  For fields that use booleans or integers they should show up. If they don't you can use a compose. But that's normally the exception, not the common usage.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

9 REPLIES 9
Gericom
Resolver II
Resolver II

Hi @mahmoodhsaud 

 

Yes, this is possible where is your content coming from? 

 

 

mahmoodhsaud
Helper IV
Helper IV

Hi @Gericom

 

The JSON is coming from powerapps.

Gericom
Resolver II
Resolver II

Hi @mahmoodhsaud 

 

you run you flow first you copy the body 

you use the parse json  in the content you use body from powerapp

click on generate from sample 

you paste the output close it a json will be created for you and know you can use all the values 

 

if you have any questions I'm glad to help you 

with kind regards

--------------------------------------------------------------------------

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up

 

@Gericom 

I have done that before, the problem is the output parameter(dynamic content) of integer and boolean from parse JSON are not coming.

 

In the below image if you see in the dynamic content only the value which has the data type of string is coming

mahmoodhsaud_0-1622711769190.png

 

mahmoodhsaud
Helper IV
Helper IV

HI @Pstork1,

Can you please help me rectify the issue 

 

Thanks and Regards,

Mahmood

Pstork1
Dual Super User III
Dual Super User III

The dynamic content dialog automatically filters the available dynamic content by things like data type.  If the field you are filling in calls for a string, like the fields in the Create File action' then you will only see string content.  Try adding a Compose action to the flow and see if the integer and boolean fields don't show up for that.  If necessary you can then use the output of the compose later as dynamic content.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

mahmoodhsaud
Helper IV
Helper IV

Thanks, @Pstork1  for your valuable inputs.

Tried adding compose action to the flow, the boolean and integers fields are showing in the compose action.

But I have many fields with data type as boolean or integer, Is it an efficient way to add that number of compose action to the flow?

Pstork1
Dual Super User III
Dual Super User III

That depends on where you want to use the values.  As I said, they aren't showing up because the fields you are using require a string.  So it doesn't make sense to use a boolean or an integer there.  For fields that use booleans or integers they should show up. If they don't you can use a compose. But that's normally the exception, not the common usage.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Thanks a lot for your valuable comments @Pstork1 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,549)