cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NickSz
Frequent Visitor

IF FUNCTION SYNTAX

Hello,

 

I have an SP List with data that will be used to merge into a word file. One of the fileds may contain "NULL" as the value stored. I would like the flow to evaluate and if "NULL" is the value then the flow should return a sigle space " ".

 

My expression currently looks as follows:

 

  • if(equals(parameters('Address3'),'NULL'),'',parameters('Address3'))2019-04-16_15-47-01.jpg

 

I am either getting invalid expression upon attempting to insert or when running the flow erres out stating invalid refrence:2019-04-16_16-00-16.jpg

 

Am I missing something? I was using brackets at first but then moved on to logic apps function refrence rather then flow conditions experessions language to define the action where I understood the brackets could be left out?

Many thanks in advance for any help.

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi @NickSz ,

 

Do you want to check if the vale is null then return a single space?

 

Please try to configure your function likes below:

if(equals(triggerBody()?['Email'],''),'',triggerBody()?['Email'])

 

I have made a test and the function will return a single space if the value is null.

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yamao-msft
Community Support
Community Support

Hi @NickSz ,

 

Do you want to check if the vale is null then return a single space?

 

Please try to configure your function likes below:

if(equals(triggerBody()?['Email'],''),'',triggerBody()?['Email'])

 

I have made a test and the function will return a single space if the value is null.

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (21,351)