How to Import Product Catalog with help of Json, Excel, XML

N Aravindh
Tera Contributor

Use Case 1 : Export Product Catalog Data from ServiceNow instance to another ServiceNow Instance (As mentioned export and Import in form of Excel, XML, JSON) 

Ans - Using Upset is Possible. (Export and Import in JSON is required)
Use Case 2 : Product Catalog are defined in Excel or JSON format, How to Import Excel in to Product Catalog which means all child modules (Screenshot attached)

Regards,
Aravindh

-- BR,
Aravindh N
1 ACCEPTED SOLUTION

Harish Bainsla
Tera Sage
Tera Sage

Use Case 1: Export Product Catalog Data from ServiceNow Instance to Another ServiceNow Instance

To export product catalog data from one ServiceNow instance to another ServiceNow instance, you can use various methods, and JSON is a common format for data exchange between systems. Here's a general outline of how you can achieve this:

  1. Data Extraction from Source Instance:

    • Identify the tables and records you want to export from the source ServiceNow instance. In your case, this is the Product Catalog data.
    • Use ServiceNow's built-in features or scripts (e.g., GlideRecord) to retrieve the data you want to export.
  2. Data Transformation to JSON:

    • Convert the extracted data into a JSON format. You can use JavaScript to structure the data as JSON objects or arrays.
  3. Export Data as JSON:

    • Save the JSON data to a file or an API endpoint. You can use ServiceNow business rules or scripts to automate this process.
  4. Transfer JSON Data:

    • Transfer the exported JSON file or send it via RESTful API to the target ServiceNow instance.
  5. Import Data into Target Instance:

    • On the target ServiceNow instance, create scripts or business rules to receive and process the JSON data.
    • Parse the JSON data and insert/update records in the target tables.
  6. Validation and Error Handling:

    • Implement error handling mechanisms to ensure data consistency and report any issues during the import process.
  7. Logging and Monitoring:

    • Implement logging and monitoring to keep track of the export and import processes.

Use Case 2: Importing Excel or JSON Product Catalog Data into ServiceNow

To import Excel or JSON data into a Product Catalog in ServiceNow, follow these steps:

  1. Prepare Your Data:

    • Ensure your Excel or JSON file contains the necessary information, including all fields required for your product catalog.
  2. Data Transformation (if using Excel):

    • If your data is in Excel format, you will need to convert it to JSON or another suitable format that ServiceNow can work with. You can use scripting languages like Python or Excel add-ins to convert the data to JSON.
  3. Import Data into ServiceNow:

    • Use ServiceNow's data import capabilities to load the data into the relevant tables. You can navigate to "System Import Sets" or "Import Data" in the ServiceNow UI to initiate the import process.
  4. Mapping Fields:

    • Map the fields in your Excel/JSON data to the corresponding fields in the ServiceNow product catalog tables. Ensure that the mappings are accurate to avoid data discrepancies.
  5. https://docs.servicenow.com/en-US/bundle/sandiego-platform-administration/page/administer/import-set...

https://docs.servicenow.com/en-US/bundle/sandiego-platform-administration/page/administer/developmen...

https://medium.com/@servicenowscholar/how-to-import-xml-6ba19c9b079e

if you get answer please mark helpful and accept solution

View solution in original post

5 REPLIES 5

Harish Bainsla
Tera Sage
Tera Sage

Use Case 1: Export Product Catalog Data from ServiceNow Instance to Another ServiceNow Instance

To export product catalog data from one ServiceNow instance to another ServiceNow instance, you can use various methods, and JSON is a common format for data exchange between systems. Here's a general outline of how you can achieve this:

  1. Data Extraction from Source Instance:

    • Identify the tables and records you want to export from the source ServiceNow instance. In your case, this is the Product Catalog data.
    • Use ServiceNow's built-in features or scripts (e.g., GlideRecord) to retrieve the data you want to export.
  2. Data Transformation to JSON:

    • Convert the extracted data into a JSON format. You can use JavaScript to structure the data as JSON objects or arrays.
  3. Export Data as JSON:

    • Save the JSON data to a file or an API endpoint. You can use ServiceNow business rules or scripts to automate this process.
  4. Transfer JSON Data:

    • Transfer the exported JSON file or send it via RESTful API to the target ServiceNow instance.
  5. Import Data into Target Instance:

    • On the target ServiceNow instance, create scripts or business rules to receive and process the JSON data.
    • Parse the JSON data and insert/update records in the target tables.
  6. Validation and Error Handling:

    • Implement error handling mechanisms to ensure data consistency and report any issues during the import process.
  7. Logging and Monitoring:

    • Implement logging and monitoring to keep track of the export and import processes.

Use Case 2: Importing Excel or JSON Product Catalog Data into ServiceNow

To import Excel or JSON data into a Product Catalog in ServiceNow, follow these steps:

  1. Prepare Your Data:

    • Ensure your Excel or JSON file contains the necessary information, including all fields required for your product catalog.
  2. Data Transformation (if using Excel):

    • If your data is in Excel format, you will need to convert it to JSON or another suitable format that ServiceNow can work with. You can use scripting languages like Python or Excel add-ins to convert the data to JSON.
  3. Import Data into ServiceNow:

    • Use ServiceNow's data import capabilities to load the data into the relevant tables. You can navigate to "System Import Sets" or "Import Data" in the ServiceNow UI to initiate the import process.
  4. Mapping Fields:

    • Map the fields in your Excel/JSON data to the corresponding fields in the ServiceNow product catalog tables. Ensure that the mappings are accurate to avoid data discrepancies.
  5. https://docs.servicenow.com/en-US/bundle/sandiego-platform-administration/page/administer/import-set...

https://docs.servicenow.com/en-US/bundle/sandiego-platform-administration/page/administer/developmen...

https://medium.com/@servicenowscholar/how-to-import-xml-6ba19c9b079e

if you get answer please mark helpful and accept solution

Harish Bainsla
Tera Sage
Tera Sage

if you get answer please accept solution

N Aravindh
Tera Contributor

Hi Harish Bainsla,

 

Thanks for your reply. Let me check and update my comments accordingly.

 

-

-- BR,
Aravindh N

Tom Schnarr
ServiceNow Employee
ServiceNow Employee

I love the solutions for this capability - but please watch this space as we plan to release productized capability around Product/Service Catalog import/export in an upcoming release.