- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi all,
I'm using the above code to generate a pdf in the hr task which is working in native UI but in the HR agent workspace it is not working. Workspace form button is checked true
workspace code
Pasting the script include
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
is the script include client callable?
is response coming from script include?
If not then ensure it's made Accessible from All Scopes
if response is coming then use this to open the URL
if (response) {
// g_form.save();
var downloadUrl = '/sys_attachment.do?sys_id=' + response;
open(downloadUrl);
}
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
The issue is due to the script include which is set to this application scope only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
is the script include client callable?
is response coming from script include?
If not then ensure it's made Accessible from All Scopes
if response is coming then use this to open the URL
if (response) {
// g_form.save();
var downloadUrl = '/sys_attachment.do?sys_id=' + response;
open(downloadUrl);
}
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
The issue is due to the script include which is set to this application scope only