We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

ATF missing outputs

PiotrekL
Tera Expert

Hi

I cannot see output variables here. How can I add them to use in next step

Reagrds

Piotr

1 ACCEPTED SOLUTION

@PiotrekL 

what's your business requirement?

That Run Server Side Script step is to grab record sysId which you want to utilize in next step

That's the only purpose.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@PiotrekL 

If you are using OOTB "Run Server Side Script Step" then it has only these 2 output variables

record_id and table

see this

55.png

When you use that step you need to set those 2 output variables with table name and record sysId which you need to use in next step

56.png

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi

I need name of the Business application. So in this case it is not possible right. As I need output as a string.

Regards

Piotr

@PiotrekL 

what's your business requirement?

That Run Server Side Script step is to grab record sysId which you want to utilize in next step

That's the only purpose.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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