- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 09:20 AM
create a ui action to download the current incident form with the values filled in incident
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 10:39 PM - edited 11-05-2023 10:45 PM
Hi @abhi159 ,
Try below script in ui action table incident, Client-true,Form Button-True, Onclick- exportPDF(),Show Update Insert-True
Please mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 09:39 AM
Hi @abhi159
You can create an UI action button with following:
var currentIncident = g_form.getTableName();
var currentSysId = g_form.getUniqueValue();
var url = currentIncident + '.do?sys_id=' + currentSysId + '&PDF';
g_navigation.open(url);
Mark as accepted solution & hit helpful buttton if it suffices your requirement.
BR, Sohith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 08:58 PM
not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 10:39 PM - edited 11-05-2023 10:45 PM
Hi @abhi159 ,
Try below script in ui action table incident, Client-true,Form Button-True, Onclick- exportPDF(),Show Update Insert-True
Please mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 10:07 PM
what you want to download? download a pdf of the incident record? OR something else?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader