cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
hjaf
Level: Powered On

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
hjaf
Level: Powered On

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

 

3 REPLIES 3
Community Support Team
Community Support Team

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

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 Flow Community Manager
hjaf
Level: Powered On

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

 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow 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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 216 members 4,945 guests
Please welcome our newest community members: