How to get responses of decision into scheduled job , ?

Neeraja K V
Tera Contributor
 
3 REPLIES 3

Neeraja K V
Tera Contributor

need a scheduled job to remove tags from incident created  before 30 days based on particular conditions ,query is written in decision table ,but scheduled job is not working on calling the decision table to get the response 

Ankur Bawiskar
Tera Patron
Tera Patron

@Neeraja K V 

you can use Decision table API to get the output

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 response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

NeerajaKV_0-1738592519301.png

what can be the inputs here , as i am expecting a list of incidents which satisfies the conditions in the query from decision table . in business rule it can be sys_id of current record or something like that .. but in scheduled job hw it will be