Show SCTASK Attachment related list on Portal

KS7
Kilo Contributor

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

4 REPLIES 4

ersureshbe
Giga Sage
Giga Sage

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.

Regards,
Suresh.

KS7
Kilo Contributor

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.

 

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.

Regards,
Suresh.

ersureshbe
Giga Sage
Giga Sage

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.

Regards,
Suresh.