Send attachments to Mid Server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2017 12:15 AM
Hi All,
How can I send attachments from Service now instance to a folder in mid server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2017 10:39 PM
Hi
You can add ms.log(); lines to the script include. Then look in mid server log file for errors or to see where the script is failing.
Shane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2018 04:14 AM
Also thanks for the script!
I just couldn't figure out how to write to the mid-server!
1 problem though, it writes a file now, but I can't open it? Seems to be corrupted 😞
Ow and where can I see this Mid server log file? Can't find my ms.loggings anywhere...
Cheers Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2018 06:41 AM
Ok I fixed the problem by doing this:
//var strData = String(Packages.java.lang.String(binData));
var encData = GlideStringUtil.base64Encode(binData);
By not converting the binData to string and using it directly for the base64encode action the file isn't corrupted anymore 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2018 01:38 PM
Thanks It is useful for me also thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2018 01:16 AM
Hi! I am using the above scripts on my instance.
I am still having some trouble. The file now shows up in the folder on the MID server, but the content of the file is missing. Do you have any suggestions?