cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bdc604
Level 8

SP Parse JSON: How to return null if value not defined/empty for objects?

 

Am using Send HTTP Request to SP and Parse JSON in Flow to get the Id value of a lookup column.

Works great if a value has been defined, if not does not show up in Parse JSON output.

Without output, I cannot assign the value to a variable for downstream use.

 

How can I return null if value not defined/empty for objects?

 

"type": "object",
    "properties": {
        "Area": {
            "type": "object",
            "properties": {
                "Id": {
                    "type": "integer"
                }
            }
        },
        

I use the following to achieve this for null strings:

"Package": {
            "type": ["string","null"]
        }

 

1 REPLY 1
Community Support Team
Community Support Team

Re: SP Parse JSON: How to return null if value not defined/empty for objects?

Hi @bdc604 ,

 

Could you please share the full output in the Http request action?

Please share more details so we could reproduce the issue and provide a proper workaround for you.

 

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.

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

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 Solution Authors
Top Kudoed Authors
Users online (4,845)