How to import json file to mid server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 02:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 08:12 AM
Would you please, explain the process with the example,As I'm new with this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 06:19 AM
Let me make it more simple. Rather going to the powershell script, lets first get the data into ecc queue and try to parse it with a business rule, (this is temporary testing, after that you can add more optimization).
1. Identify the path of file you want to read. I am taking an example of dummy file I created in my instance. I used a existing mid server folder i.e. /agent/ and created a directory "testRead" in the "agent" folder. And created a dummy JSON file in it with name "test.json".
Also added some content in the json file:
2. Now open the "ECC queue" in ServiceNow instance "ecc_queue" and create a output record as shown in below screenshot:
3. Keep refreshing the page until the output is processed and you get an input record in the related list.
4. Once you see the record in related list, Open the record. It will have the status as error because there is no sensor defined to process the data. You can ignore the state for now. Check whether you are getting the json file content in the Payload.
Now you know that you can bring the json file data. This methods can be optimised using the processing sensor to parse the output, use the BR to identify the type of record and process the data, using the MID Scripts Files and MID Script Include, using the Integration HUBs.
If more help is required, kindly let me know.
Regards,
Parag Sanyashiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 06:30 AM
so basically you want to bring data from mid server via json and load to some target table?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 08:08 AM
yes,i wanted to bring the upload data(which is in json format) from mid server to back to the instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 06:48 AM
I want to export the table data in json format from Service Now instance to SFTP Location.