significance of Action Name

ServiceNow Use6
Tera Guru

Hi,

What is the significance of Action Name in UI Action? I only know that when we are calling server-side code from client-side, we use it gsftSubmit(null, g_form.getFormElement(), actionName), and then we write server-side logic. Even then, how is the action name helping us? Kindly help.

Regards

Suman P.

1 ACCEPTED SOLUTION

Sateesh Kumar D
ServiceNow Employee
ServiceNow Employee

Hi,

That is a very good question, usually developers don't care about.

Action Name is used by the system to identify whcih button (UI action) was clicked on a form. That's why it's important to use a unique action name for each UI action on a table.

Developers can leverage this to write a reusable server side code, they can use gs.action_name on the service-side to determine which action was invoked. This enables them to create a common function on script include and the behaviour can be controlled based on the action name.

View solution in original post

1 REPLY 1

Sateesh Kumar D
ServiceNow Employee
ServiceNow Employee

Hi,

That is a very good question, usually developers don't care about.

Action Name is used by the system to identify whcih button (UI action) was clicked on a form. That's why it's important to use a unique action name for each UI action on a table.

Developers can leverage this to write a reusable server side code, they can use gs.action_name on the service-side to determine which action was invoked. This enables them to create a common function on script include and the behaviour can be controlled based on the action name.