Can I create an UI Action button to Create a new ast_contract record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 10:45 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 10:05 AM
Don't put any quotes for current.sys_id
contractRecord.support_request = current.sys_id;
Mark as Accepted Solution !!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 12:10 PM
Sadly that did no work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 11:02 AM - edited 02-20-2024 11:03 AM
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