How to create ui action, as a related link in incident table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 04:09 AM
Hi Team,
How to create a Form Link UI Action on Incident table.
When we click on that link Form Link UI Action, it is should be copied short description and description field values into new form.
Note: new form is custom table.
@Community Alums
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 04:11 AM
Hi @Gopal14
This video will help you to create the UI Action as related link.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 05:04 AM
Hi @Gopal14 ,
I tried your problem in my PDI and it works for me. Please check below solution
Create UI Action and add below code
var gr = new GlideRecord('incident');
gr.initialize();
gr.sys_id = -1;
gr.short_description = current.short_description;
gr.description = current.description;
gr.insert();
action.setRedirectURL('incident.do?sys_id='+gr.sys_id)
Result
When I click on related link "Incident Form" it will redirect to new incident form with copied short description and description
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 12:15 AM
Hi @Community Alums
Thanks for the help.
I want to populate configuration item field also.