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

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (10,013)