Show SCTASK Attachment related list on Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2022 04:24 AM
Hi All,
I have a requirement to copy attachments from RITM to SCTASK and vice versa. I understand achieving this via BR always creates a loop. So, I have created a relationship that shows SCTASK attachment on RITM.
Now, we also wanted to show these attachments to end user on Front end portal.
Please suggest how can I achieve this. I have tried using the widget shared by Nathan Firth but it requires me to add underscore js in ServiceNow and which is not working as expected.
Any lead would be apprceiated.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2022 04:27 AM
Hi,
The attachment added in RITM and Task as per information. In self service portal the end user can see REQ. If you add the attachment in REQ it should in Portal.
Regards,
Suresh.
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2022 08:08 AM
Hi Suresh,
I have created the related list as per the blog shared by you. But, we are showing RITM on portal instead of REQ.
I have a related list on RITM where all the attachments from SCTASK is shown and I wanted to show these attachments to end user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2022 10:13 AM
Hi ,
As per your scenario,you should copy the attachments from task to RITM. Please refer below and you can use copy and write function to achieve the requirement . Please find below link.
https://developer.servicenow.com/dev.do#!/reference/api/quebec/server/no-namespace/c_GlideSysAttachmentScopedAPI#r_SGSA-copy_S_S_S_S?navFilter=attachment
Regards,
Suresh.
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2022 04:29 AM
I would recommend to use below article. As per Service now best practice dont copy the attachment instead you can display the attachment under related attachment tab.
https://community.servicenow.com/community?id=community_blog&sys_id=928c2ae1dbd0dbc01dcaf3231f961927
Regards,
Suresh.
Suresh.