
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2019 09:18 PM
Our customers created case via the web portal. Our engineers work in the incident. All the updates that should be visible for the customer are synchronized between case and incident. When a customer adds an attachment to the case, it is not visible in the incident. How can I make this work? I checked the forum and the documentation, but was not really able to find a solution. Thank you in advance for your help!
Solved! Go to Solution.
- Labels:
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2019 04:51 AM
My pleasure and please start working on scripting by joining the developer's learning on https://developer.servicenow.com.
Kindly,mark the answer as correct if this helps you out so,this questions could be considered as closed for other community members.
Regards,
Munender

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2019 02:46 AM
I now have the following, but I receive quite some errors.
(function executeRule(current, previous /*null when async*/) {
var incGr = new GlideRecord('incident');
incGr.addQuery('<u_case>', current.table_sys_id);
incGr.query();
if(incGr.next())
{
GlideSysAttachment.copy('<sn_customerservice_case>', current.table_sys_id, 'incident', incGr.sys_id);
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2019 03:45 AM
Hi,
This ain't good,please share the screenshot of your form .
rEGARDS,
mUNENDER

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2019 11:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2019 01:36 AM
Hi,
You can use code like this:
var incGr = new GlideRecord('incident');
incGr.addQuery('u_case', current.sys_id);
incGr.query();
if(incGr.next())
{
new GlideSysAttachment.copy('incident', incGr.sys_id, 'case', current.sys_id);
})(current, previous);
Regards,
Munender

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2019 02:42 AM