cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kudo Kingpin
Kudo Kingpin

Bypass null

Hi there,

 

New in flow, new in PowerApps and a silly question here?

 

I have a JSON schema form my powerapps. It is lots and lots of fields, so I mean the schema is huge. For many reason some fields could be empty. I have been trying to add If(Blank(myfield)," ", myfield), but this is a tedious process.

 

Anyway to bypass or simplify this process?

 

Thanks in advance for any response.

 

Regards  

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Hello @sajarac 

 

Try to stringify your JSON object, then do a replace of the null with "", and finally turn it back into a JSON object. Like this:

Replace null in JSON object.jpgReplace null in JSON object.Result.jpg

The expression is in the comment 🙂

Kind regards, John

View solution in original post

1 REPLY 1
Super User
Super User

Hello @sajarac 

 

Try to stringify your JSON object, then do a replace of the null with "", and finally turn it back into a JSON object. Like this:

Replace null in JSON object.jpgReplace null in JSON object.Result.jpg

The expression is in the comment 🙂

Kind regards, John

View solution in original post

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (8,436)