I want to call UI action from another UI action

gachupin
Tera Contributor

I created two UI action in incident table.

UI action A updates the record.
UI action B copies the description field.
I want to call UI action B within UI action A after the record is updated.
Is there a way to do this?

Thank you.

5 REPLIES 5

Amit Verma
Kilo Patron
Kilo Patron

Hi @gachupin 

 

Below post could be helpful :

https://www.servicenow.com/community/developer-forum/how-can-i-call-a-ui-action-from-another-ui-acti...

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

SN_Learn
Kilo Patron
Kilo Patron

Hi @gachupin ,

 

You could have done both the action in single UI action.

 

To gain some insight how to call one UI action from another, Please have a look at the below:

Call UI action in another UI action 

 

Mark this as Helpful / Accept the Solution if this helps

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

Thank you for your response.

>You could have done both the action in single UI action.

Could you please explain how I can do that?

 

I watched this video.

However I couldn't my problem...

Sumanth16
Kilo Patron

Hi @gachupin ,

 

Below is the code you need to add it at the end of the ShowMyForm function.  

 

gsftSubmit(null, g_form.getFormElement(), ''ActionNameofupdateuiaction"); //MUST call the 'Action name' set in this UI Action

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda