Risk Assessment(atf)

kishorek9987311
Tera Contributor

Hi,
I am writing a server-side script in the Change module to complete the Risk Assessment using ATF.When I tried to pass the sys_id from the Click a UI Action step (where the Change record is created), I received the error: "Change record not returned from ATF step".
However, when I use the same step as a reference in the Open an Existing Record step, it successfully opens the Change record that was created. But I am unable to fetch the sys_id in the ATF server-side script.Below is my code. Could someone please suggest a solution?

If this is an ATF limitation, I will raise a ticket with ServiceNow.

 " var changeStep = steps('give your _SYSID');

 

    if (!changeStep || !changeStep.record_id) {

        stepResult.setOutputMessage("Change record not returned from ATF step");

        return false;

    }" 

 

 

0 REPLIES 0