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

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:

 

Fix Blank Values Flow.jpgFlow

 

Select.jpgSelect

 

Expressions.jpgExpressions

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

Re: change null to blank for choice values

Hi @Joanna,

 

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

Re: change null to blank for choice values

Hi @Joanna,

 

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

Joanna
Level: Powered On

Re: change null to blank for choice values

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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

Top Kudoed Authors (Last 30 Days)
Users online (4,705)