Can I create an UI Action button to Create a new ast_contract record

Wyatt Fudal1
Tera Guru

The UI action button will exist on the CNTSUP (u_contract_master) table. The button will create a CNTR record. The current way CNTR records are created is fine but they want a button. I’m running into an issue with how to script.

WyattFudal1_0-1708454645641.png

 

7 REPLIES 7

Hi @Wyatt Fudal1 


Don't put any quotes for current.sys_id

 

contractRecord.support_request = current.sys_id;


Mark as Accepted Solution !!!

Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)

Sadly that did no work.

Sumanth16
Kilo Patron

Hi @Wyatt Fudal1 ,

Create UI action with below code:

 

Add .insert() function

 

 

var gr = new GlideRecord('table name');
gr.initialize();
gr.description= description;
gr.insert();

 

 

 

 

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

 

Thanks & Regards,
Sumanth Meda