cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

change null to blank for choice values

Hello,

I have a Flow that Gets Items from a SharePoint List and then Selects the items so that it can be placed into a CSV table.

I receive the same type of error when there are blank and null fields within the Select Card, for example this kind of error:

…failed: 'The template language expression 'item()['TestDate']' cannot be evaluated because property 'TestDate' doesn't exist, available properties are '…

I have successfully addressed all of the fields except for Choice Fields.  Does anyone know the proper syntax for choice fields missing a value?

 

This is my Flow:

 

FlowFlow

 

SelectSelect

 

ExpressionsExpressions

The expressions I have tried for the choice field are:

 

if(equals(coalesce(item()?['Development_x0020_Team_x0020_1']['Value'],'NULL'),'NULL'),'',coalesce(item()?['Development_x0020_Team_x0020_1']['Value']))

 

 

If(equals(length(item()?['Development_x0020_Team_x0020_1']['Value']), 1), item()?['Development_x0020_Team_x0020_1']['Value'], '')

 

Thank you,

Joanna

 

  

1 ACCEPTED SOLUTION

Accepted Solutions
v-yuazh-msft
Community Support
Community Support

Hi @Anonymous,

 

I have made a test on my side and have created a list with a choice type column TestDate as below:

Capture.PNG

 

You could refer to screenshot below to create the flow:

Capture.PNG

 

The expression of the TestDate in the Select actin as below:

if(empty(item()?['TestDate']?['Value']),null,item()?['TestDate']?['Value'])

 

The flow would run successfully as below:

Capture.PNG

 

 

 

Best regards,

Alice

View solution in original post

2 REPLIES 2
v-yuazh-msft
Community Support
Community Support

Hi @Anonymous,

 

I have made a test on my side and have created a list with a choice type column TestDate as below:

Capture.PNG

 

You could refer to screenshot below to create the flow:

Capture.PNG

 

The expression of the TestDate in the Select actin as below:

if(empty(item()?['TestDate']?['Value']),null,item()?['TestDate']?['Value'])

 

The flow would run successfully as below:

Capture.PNG

 

 

 

Best regards,

Alice

View solution in original post

Anonymous
Not applicable

OMG  You are so smart!  It works.  Thank you Thank you

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (3,207)