- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2018 01:46 PM
Using the blog below I was able to setup a pdf file to be posted on the mid server.
http://www.john-james-andersen.com/blog/service-now/javascriptprobe-and-mid-server-script-includes.html
Is it possible to control the folder path where the file is posted to? Currently it is posted directly in the agents folder.
Solved! Go to Solution.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2018 06:46 AM
Hi Snowtech,
In the execute method there is one line of code where you can say where to put that file like C drive etc.
var f = new this.File(this.filename);
instead have it like this
var filePath = 'C:/Mid Servers/mid.helsinki/agent/export/customFolder/' + this.filename;
var f = new this.File(filePath);
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2018 06:46 AM
Hi Snowtech,
In the execute method there is one line of code where you can say where to put that file like C drive etc.
var f = new this.File(this.filename);
instead have it like this
var filePath = 'C:/Mid Servers/mid.helsinki/agent/export/customFolder/' + this.filename;
var f = new this.File(filePath);
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2020 12:43 PM
Hi Ankur,
I'm trying to create a customized csv and export it to MID Server custom folder. I looked at export set but I don't have customization file. Can you please provide some suggestions?
Thanks,
Ashraf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020 02:34 AM
Hi,
using export set you cannot send customize file; only table data is allowed
I would recommend using custom mid server script include to handle this
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020 06:01 AM
Thank you. Have no idea on mid server scripts, any leads will be appreciated.