Can we use System Properties directly in a Decision Table

chandan86patra
Tera Contributor
Hi All ,
Can we use System Properties directly in a Decision Table in ServiceNow? If not, could you please provide alternative ways to achieve this and explain the steps? with scripts.
2 REPLIES 2

Sudhanva1
Tera Expert

Hi Chandan,

For Decision tree to fetch dynamic input from sys properties we can achieve it via flow designer
Create a Flow Variable which contains property value
in Flow add Decision tree and pass the input variable value the Decision Results will have you outputs to be passed down to next best action on flow.

Thanks & Regards
Sudhanva Chandra D
ServiceNow ArchX | 8 ServiceNow CIS

yashkamde
Giga Sage

Hello @chandan86patra ,

 

As far as I know you cannot reference or query a System Property inside Decision Table bcz it requires explicit input parameters passed from a flow, a script (via DecisionTableAPI).

Also supported inputs are limited to standard field types such as Choice, String, Integer, Reference, Date/Time, and True/False, rather than a dynamic system property lookup inside the table definition itself.

What you can do is retrieve the system property value beforehand in your server side script or flow using gs.getProperty('your_property_name');

 

If my response helped mark as helpful and accept the solution.