How to get Decision point result element in ATF test step?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2025 03:18 AM
Hi all,
I am trying to create a test for a service catalog item. There is a decision table step in the flow and I am trying to automate that as well via impersonating the user record that comes from Decision table (so that I can impersonate that user to approve). I found the table that contains the result elements: sys_decision_multi_result. I put a Record Query step to get query this table for the decision table I call. But it is not possible to dot.walk in the next step (impersonate) to move to result elements from the query that returns.
Anyone found a way?
Best,
Firat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2025 06:50 AM
Thanks!! for marking the reply as Helpful.
Are above solutions solved the question? Is yes, Pls close the question by accepting as solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 07:02 AM
Thanks for introducing the parameterization but it is not clear to me how this helps with finding the result coming from the decision table.
You impersonate first but the result of that impersonation does not come from decision table result table.
Do I miss something?
Best,
Firat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 07:36 AM
I was checking this solution but it seems like it is not so straightforward to get the result from the decision table via that piece of code.
I think we need to call the DecisionTable API with input and only then we will be able to return the result. See here: https://www.servicenow.com/community/workflow-automation-articles/make-decisions-from-javascript-wit...
Best,
Firat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2025 04:47 AM