Attachment in sc catalog item widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 02:50 AM
Hi:)
In the widget client script I see that attachment is saved in 'sp_portal', where does it change the location and add the attachment to the correct item?
this is the line:
var ah = $scope.attachmentHandler = new nowAttachmentHandler(setAttachments, function() {});
ah.setParams('sp_portal', $scope.data._attachmentGUID, 1024 * 1024 * 24);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2018 05:36 PM
Actually, I found another workaround, but I would still be interested in your solution Dominik.
I found this KB when looking around: ServiceNow KB: Service Portal - when processing record producer, attachments aren't yet available to...
So I used an Async insert BR on the sys_attachment table, so you can get the actual sys_id of the record, rather than the temporary sys_id for sp_portal.