We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Where is the script stored for sys_declarative_action_assignment - specifcally for copy_case?

saireddycon
Tera Expert

saireddycon_0-1770290147332.png


The above screenshot is for a Declarative action assignment for copying a case in HR Agent workspace. We have a similar UI Action custom made by us but wanted to see the difference between ours and the OOB Copy Case. I would like to compare the script written by service now but cannot find it anywhere. 

Any help regarding this is appreciated, thank you!

 

3 REPLIES 3

Sachin_Nasa
Tera Guru

Hi @saireddycon ,

You can find fields like Client Script, Server Script, Scripted Client Condition, Script Condition, and Client Conditions directly in the Action Assignments (sys_declarative_action_assignment) table.

To view them more easily:

List View

  • Open the Action Assignments list
  • Personalize the List to add the fields you want to display
    Sachin_Nasa_0-1770298965145.png

Form View

  • Open the specific record
  • Right‑click the form header (banner frame)
  • Go to Configure → Form Design
  • From there, you can drag the fields you want onto the form to make them visible
    Sachin_Nasa_1-1770298988474.png

    If you find this response helpful, please mark it as Helpful and accept it as the solution if it addresses your question—it would encourage me to contribute more to the ServiceNow Community.

    Thanks & regards,
    Sachin Narayanasamy


Thanks & Regards,
Sachin Narayanasamy

Sachin_Nasa
Tera Guru

Hi @saireddycon ,

 

You can find fields like Client Script, Server Script, Scripted Client Condition, Script Condition, and Client Conditions directly in the Action Assignments (sys_declarative_action_assignment) table.

To view them more easily:

List View Open the Action Assignments list Personalize the List to add the fields you want to display
Form View Open the specific record Right‑click the form header (banner frame) Go to Configure → Form Design From there, you can drag the fields you want onto the form to make them visible

If you find this response helpful, please mark it as Helpful and accept it as the solution if it addresses your question—it would encourage me to contribute more to the ServiceNow Community.


Thanks & Regards,
Sachin Narayanasamy

Sachin_Nasa
Tera Guru

Hi @saireddycon ,

As you mentioned, I have checked the Copy Case record, and it does not have any associated Server-side Scripts or Client Scripts. That is why I believe there is no hard-coded script involved in this functionality.

Instead, the behavior appears to be driven by multiple linked configuration records—such as highlighting configuration structures—most of which are related to workspace configuration. The logic seems to be handled at the condition level, rather than through explicit scripting.

For this copy use case as well, the functionality is controlled through indirectly associated or linked records rather than direct field-level scripts. To achieve or modify the required behavior, these linked configurations need to be explored individually and in depth.


Thanks & Regards,
Sachin Narayanasamy