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.

Ui action script doesn´t work

Big Alex
Tera Contributor

I'm creating a UI action (button) in the ServiceNow sc_task table called "Create Story". The button should trigger a process to create a story record in the rm_story table and copy fields and attachments from the related Requested Item (RITM) to the new story. However, the button isn't working as expected because the script isn't even being called. I need guidance on how to implement the script so that clicking the button starts the flow or executes the necessary actions. We've already tried all approaches and configurations, and since the script isn't running, even looking at the log table is pointless. 

 

The script runs on background scripts interface, so the script is ok. But why on earth he doesn´t run in the UI action is a mystery!

 

Thanks in advance!

11 REPLIES 11

Big Alex
Tera Contributor

Guys just an update on this one.

 

Our team have made some extra tests and could verify that the same UI action works well creating story from the incident table and also from the sc_req_item table. However for any reason that we don´t know it doesn´t create a story from the sc_task table.

 

So for now we could isolate the problem is in the sc_task table and will continue to troubleshoot.

 

We appreciate any inputs from you.

 

Thanks in advance

@Big Alex 

did you try the script I shared?

AnkurBawiskar_0-1764083304057.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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader