How to call decision table API from script include and return output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 11:37 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 05:25 AM
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!!
Thank you!!
Dnyaneshwaree Satpute
Tera Guru