cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

Re: change null to blank for choice values

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
Highlighted
Community Support
Community Support

Re: change null to blank for choice values

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

Highlighted
Anonymous
Not applicable

Re: change null to blank for choice values

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (4,861)