Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Workflow Action not saving outputs correctly showing in Logs

Benj149
Tera Contributor

Hi all! 

 

I am new to scripting and am having trouble with getting my actions to save as outputs. 

 

My action calls a script include called "ChatGPT3", where it then creates variables for my "id" and "thread_id":

Benj149_2-1714049768491.png

 

This is defined from "ChatGPT3" here:

Benj149_3-1714049825066.png

 

The data is being correctly stored in the logs from my "gs.logs" within the Script input, so the data is making its way to ServiceNow.  

Benj149_0-1714049582794.png

 

I have setup my output variables as below:

Benj149_4-1714049998464.png

Benj149_5-1714050012251.png

 

Test runs, run successfully however the values are empty:

Benj149_6-1714050143497.png

 

 

Thanks for any guidance you can provide! 

0 REPLIES 0