Form Incident - Export PDF by Navigating by URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2016 12:14 PM
I need to export form incident data to pdf through navigating url.
I am using ..../nav_to.do?PDF&uri=incident.do?sys_id=83d39b3918172050e45, but I'm not having successful.
Please, anybody can help me ?
Thanks for attention
Claudio Frazão
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2016 12:49 PM
Create UI Action and write below code
function createPDF() {
var sysparm_table = g_form.getTableName();
var sysparm_view = 'Pdfview';// this should be your view name.
var sysparm_sys_id = g_form.getUniqueValue().toString();
var url = sysparm_table + '.do?PDF&sys_id=' + sysparm_sys_id +'&sysparm_view='+ sysparm_view;
window.open(url);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2016 02:13 PM
Great! I'm got it with your tip!
Thank so much,, srnewbie. !
Now, I have just one small doubt. It's possible to change sysparm_sys_id to incident number. How I have structure the UI Action code ?
Like:
....service-now.com/incident.do?PDF&sysparm_query=number=AT0070000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2016 02:42 PM
As per my knowledge it has to be sys_id.