UI builder client script include is not visible in client script

vishwas2002
Tera Contributor

want to copy attachment from current record in ui builder so i write a script include to achieve this but that script include is not visible in client script include section in ui builder. if you have any idea how to copy attachment from current record and attach that attachment to newly created record, can you help me.

 

vishwas2002_0-1750858331327.png

 

1 ACCEPTED SOLUTION

mayankkumar
Tera Sage

Hi @vishwas2002,
Just a quick heads-up — Script Includes used in UI Builder are different from standard Script Includes. You’ll need to use a UX Client Script Include, which is stored in the sys_ux_client_script_include table.

Here’s how you can create one:

  1. Navigate to:

    • sys_ux_client_script_include.LIST to see all

    • or sys_ux_client_script_include.NEW to create a new one

      mayankkumar_0-1751792355191.png mayankkumar_1-1751792377815.png

       

       

  2. Write your business logic in this Script Include.

  3. Once created, you can go to UI Builder, and under the Client Script Includes section, select the one you just created to use it in your client script.

Let me know if you need help with the syntax or usage!
If this was helpful, please mark it as Helpful and Accept as Solution.

View solution in original post

1 REPLY 1

mayankkumar
Tera Sage

Hi @vishwas2002,
Just a quick heads-up — Script Includes used in UI Builder are different from standard Script Includes. You’ll need to use a UX Client Script Include, which is stored in the sys_ux_client_script_include table.

Here’s how you can create one:

  1. Navigate to:

    • sys_ux_client_script_include.LIST to see all

    • or sys_ux_client_script_include.NEW to create a new one

      mayankkumar_0-1751792355191.png mayankkumar_1-1751792377815.png

       

       

  2. Write your business logic in this Script Include.

  3. Once created, you can go to UI Builder, and under the Client Script Includes section, select the one you just created to use it in your client script.

Let me know if you need help with the syntax or usage!
If this was helpful, please mark it as Helpful and Accept as Solution.