cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Got to be a better way to deal with empty fields from SharePoint

I am using select to map an object/array, that i run through a Parse JSON figuring that if i just remove the type it would at least aknowledge that the property is there even if its empty.

 

I have come to the (hopefully wrong) conclusion that i have to test/default each field with:

if(empty(item()?['fieldname']), '', item()?['fieldname'])

This feels like such an ugly hack, there must be a better way to deal with this, any suggestions? 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper V
Helper V

Re: Got to be a better way to deal with empty fields from SharePoint


@v-yuazh-msft wrote:

Hi @hjaf,

 

Yes, the only way to get the empty fields from SharePoint is use the expression that you provided and there is any better way to deal with this in microsoft flow currently.

 

Best regards,

Alice


Thanks for the feedback, I assume you mean there isn't any better way. I made a suggestion/idea about this here

 

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Got to be a better way to deal with empty fields from SharePoint

Hi @hjaf,

 

Yes, the only way to get the empty fields from SharePoint is use the expression that you provided and there is any better way to deal with this in microsoft flow currently.

 

Best regards,

Alice

Highlighted
Administrator
Administrator

Re: Got to be a better way to deal with empty fields from SharePoint

Hello, @hjaf!

Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-yuazh-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

-Gabriel
Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!
Highlighted
Helper V
Helper V

Re: Got to be a better way to deal with empty fields from SharePoint


@v-yuazh-msft wrote:

Hi @hjaf,

 

Yes, the only way to get the empty fields from SharePoint is use the expression that you provided and there is any better way to deal with this in microsoft flow currently.

 

Best regards,

Alice


Thanks for the feedback, I assume you mean there isn't any better way. I made a suggestion/idea about this here

 

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Top Kudoed Authors
Users online (8,826)