How to use condition on a function field?

Erica2
Tera Contributor

Hello everyone,

 

Could someone please let us know is it possible to use condition on a function field?  I googled, but could not find much information on this.

 

Thanks 

2 REPLIES 2

DrewW
Mega Sage
Mega Sage

Why do you mean by "use condition on a function field"?  Like your function field has an if/then statement in it?  If so the answer is no you cannot do that because the functions are run by the DB server.  If you need some decision logic you will need to use a custom field that calculates via the dictionaries "Calculated" check box and script or calculate it using a business rule.

 

The docs here explain the limitations

https://docs.servicenow.com/en-US/bundle/utah-platform-administration/page/build/platform-functions/...

 

Erica2
Tera Contributor

Hi @DrewW 

 

Yep, "like a function field has an if/then statement in it".  Thank you for the answer!