How to call decision table API from script include and return output

lucky24
Tera Contributor

Hi Team,

I have created one decision table where I have given input as a "country", "location", and "employee type" and I have set in results "type" as home or office according to all 3 inputs.

 

Now I have to call the decision table from the script include and return output in the client script. and there I have to auto-populate the value on the form.

can someone please let me know how I can achieve this?

 

 

1 REPLY 1

Dnyaneshwaree
Mega Sage

Hello @lucky24 ,

You can refer below articles to give inputs using script include and set value by populating it into the form using client script:
https://www.servicenow.com/community/workflow-automation-articles/populate-choices-from-a-decision-t...
https://www.servicenow.com/community/riseup-with-servicenow-blogs/how-to-use-decision-table-from-scr...
https://www.servicenow.com/community/developer-forum/decision-table-call-via-script-is-throwing-exce...

If my solution helps you any way then mark it as accepted and helpful.

Thank You!!