cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ReneAlvarezM
Frequent Visitor

Parse JSON not showing all columns

Hi all. I'm building a (simple) flow to test some scenarios. Basically I'm getting data from a REST API call.

flow1.png

After the call, I'm getting rid of the first part of the response to properly pass it to the Parse JSON step like this:

flow2.png

And then I'm parsing the JSON response with a schema created from the original output. Only thing I needed to modify is that I added a "null" data type option because otherwise I got the error of a null being returned instead the data itself. This is the beginning of the schema:

 

{
"type": "array",
"items": {
"type": "object",
"properties": {
"Id": {
"type": ["string","null"]
},
"Name": {
"type": ["string","null"]
},
"Created": {
"type": ["string","null"]
},
"Modified": {
"type": ["string","null"]
},
"ModifiedBy": {},
"CreatedBy": {},
"PlanId": {
"type": ["string","null"]
},
"ParentTaskId": {
"type": ["string","null"]
},
"Leaf": {
"type": ["boolean","null"]
},
"WorkTypeId": {
"type": ["string","null"]
},
"WorkType": {
"type": ["string","null"]
},

 

The flow works fine and I'm getting all the values if I run it, however most of the columns are simply not there if I try to use them in a new step. For example, the next thing I need to do is filter this output by a known value for the "WorkType" column but that option is not present at all.

 

flow3.png

 

Obviously I'm missing something but cannot figure out what. What am I missing/doing wrong?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @ReneAlvarezM,

 

If the dynamic content disappears, how about you using the expression to get them?

For example:

item()?['WorkType']

 

Best Regards,
Community Support Team _ Lin Tu
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

2 REPLIES 2
v-litu-msft
Community Support
Community Support

Hi @ReneAlvarezM,

 

If the dynamic content disappears, how about you using the expression to get them?

For example:

item()?['WorkType']

 

Best Regards,
Community Support Team _ Lin Tu
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

ReneAlvarezM
Frequent Visitor

Great suggestion and actually it works!

 

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,511)