- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2022 11:16 PM
It is Forbidden to upload on ServiceNow Instance file record Confidential customer data, therefore trying to implement storage Confidential data via 3rd party file management system
Implement REST API via Scripted Rest API module and load data from Upload Action URL through implemented path vis 3rd party file management system.
REST API
- Using REST API to Storage files on 3rd party file management system.
- When upload files successfully, get access response files from 3rd party file management system and save on sys_attachment table record.
Download, Delete, Update functions will be similar to Implement.
As far as I know, on the System UI > UI Pages, be able change Request URL to change Action of attachment record. (shown image below)
And also on the System UI > UI Macro, change Request URL to Modify XML of attachment_entry record. (shown image below)
To my knowledge of modifying steps, changes are possible. (shown image below)
But when using Drag and Drop function, CAN NOT modify Requested URL & Uploaded files of Download links that records on activity stream.
Finally, I do have couple inquiries of about making changes.
By default, ServiceNow recommends not to make changes like this way.
I do have restriction issues with the Laws of the South Korea Government.
My Inquiries
- To customize File Attach Card of Drag and Drop function and Activity Stream, Is it impossible to modify this way?
- If possible, are there better ways to implement it? (ServiceNow instances can only have access to links attached data files. Instance record Must Forbid pass through to ServiceNow.)
As far as I know, it seems like possible to make changes to the way I described it. If there is a function to modify URLs at the same time (such as system properties, Configurations, etc.).
In the future, does ServiceNow have any functions update plans like this case?
Thank you.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2022 11:47 PM
Hi,
not sure I understood your requirement 100%, but it appears as you want after clicking on an attachment icon, not to download the actual attachment file from SN, but for the user to be redirected to 3rd party system, to an attachment stored there?
TBH I would suggest not to modify the OOTB attachment handling macros. Perhaps there is another way you could implement your solution, maybe even an easier way.
If you can get a "download URL" from the 3rd party system for the attachment, perhaps ou can just store that clickable link in the Work Notes? That way it would show up in the Activity Log and agents could click it to download.
For uploading attachments, if you want to redirect users to 3rd party system, as I understand they first need to know if they are uploading a "regular" attachment or a "restricted" attachment. So how about you add a separate button/link to the form (a custom UI Action), which will take them to the other system?
Just some thoughts. But if you really neeed to do it the way you're describing above, I am not familiar with a way to customize the Activity Stream macro, it is not accessible. You would need to tray and ann some client script on load, in order to tray and manipulate how it behaves (with DOM manipulation and JS onclick function injection most likely, which is not a good practice).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2022 11:47 PM
Hi,
not sure I understood your requirement 100%, but it appears as you want after clicking on an attachment icon, not to download the actual attachment file from SN, but for the user to be redirected to 3rd party system, to an attachment stored there?
TBH I would suggest not to modify the OOTB attachment handling macros. Perhaps there is another way you could implement your solution, maybe even an easier way.
If you can get a "download URL" from the 3rd party system for the attachment, perhaps ou can just store that clickable link in the Work Notes? That way it would show up in the Activity Log and agents could click it to download.
For uploading attachments, if you want to redirect users to 3rd party system, as I understand they first need to know if they are uploading a "regular" attachment or a "restricted" attachment. So how about you add a separate button/link to the form (a custom UI Action), which will take them to the other system?
Just some thoughts. But if you really neeed to do it the way you're describing above, I am not familiar with a way to customize the Activity Stream macro, it is not accessible. You would need to tray and ann some client script on load, in order to tray and manipulate how it behaves (with DOM manipulation and JS onclick function injection most likely, which is not a good practice).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 07:37 PM
I was thinking the same. thank you for answer and kindness.