Question

Checking for Null in a business Process

All, I have a BP that needs to use the Contact Email address. How can I check to see if it is null or not filled out.  I tried  ==null but it does not work.   This would be for a conditional flow.

Like 0

Like

4 comments

Strings have a default value of a blank string, so try using this: 

[#EmailParam#] != ""

Or better (since if it's a not initialized string process param it can be null)

!string.IsNullOrEmpty([#EmailParam#])

Ryan

also can try [#EmailParam#]  == String.Empty

Thank you both. All worked!!!

most comprehensive check is

String.IsNullOrWhiteSpace(String)

Indicates whether a specified string is null, empty, or consists only of white-space characters.

Show all comments