GlideSysAttachment.copy() used in Record producer does'nt seem to work in service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2017 07:01 AM
Hi Everyone,
I have a record producer based on task table. Have some conditions to create an inc/req accordingly.
GlideSysAttachment.copy() is used to copy the attachments from task record to incident/req. This functionality is working fine when I create a record using "Try it" UI action. But when I try to do the same thing from Service Portal it doesn't work. I can see an entry in Sys_attachment table though.
Please share your inputs.
Thanks
Nishanth

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2018 08:36 AM
Hey David,
That is a bummer. Maybe I can rig up an event that will push the attachment. Does anyone have a workaround?
Glenn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2018 08:39 AM
Servicenow's workaround was to use an Async business rule, but I still had inconsistent results using that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2018 08:44 AM
I was able to fix this in my workflow run script by adding a timer. It looks like a timing issue when you do it from the portal. All good in the hood now.
Glenn