Declarative Form Action: Questions/Bug?

MichaelZischeck
Kilo Sage

I have defined a declarative form action, with help of this:

https://www.servicenow.com/community/next-experience-articles/introduction-to-declarative-actions/ta...

 

Weird thing is: depending on the way I open the record, the action has a different name (name=label, what we read)

It's a client script action which should open the customer_contact record in the platform GUI (if we need to create logins or reset passwords, as these functionalities are not awailable in workspace)

If I open the contact via the contact list, the URL is like: (Var A)

now/cwf/agent/record/customer_contact/6681de79873a5910f969a8290cbb3501

Here the action has the label as defined in the label of sys_ux_form_action_layout_item

 

if I open the contact via another record, eg. a request, then the URL is like: (Var B)

now/cwf/agent/record/sc_request/698cb27c8733961037bfca270cbb35ba/sub/record/sys_user/6681de79873a5910f969a8290cbb3501

Here the action has the label as defined in the action label of sys_declarative_action_assignment

 

Looks like a "bug" to me....

 

Another question is: which order does apply? I have order field on 

sys_declarative_action_assignment

sys_ux_form_action_layout_item

sys_ux_m2m_action_layout_item

it looks like the sys_ux_m2m_action_layout_item is leading here on Var B

it looks like the sys_declarative_action_assignment is leading here on Var A

 

I could cry upon those inconsistencies...

 

It makes debugging a nightmare...

 

 

 

0 REPLIES 0