- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2023 04:53 AM
We had a scenario where we need to load the csv report from the Wiz IO app to ServiceNow. As per our understanding Wiz IO only support Graphql API call and not the REST/SOAP. There are some capabilities in ServiceNow to generate the Graphql queries but that is to build the payload for ServiceNow data so that if can be used to fetch the data from ServiceNow on a third party tool. Our objective is to call the Wiz API in ServiceNow to get the report generated on the Wiz IO application.
Solved! Go to Solution.
- Labels:
-
Architect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2023 03:43 PM
Hi Kannan Nair,
If Wiz IO only supports GraphQL API calls, and you need to call that API from ServiceNow, you will need to create a custom integration in ServiceNow that uses GraphQL to communicate with Wiz IO.
Here are the general steps you would need to follow:
Create a custom GraphQL query: Using the ServiceNow GraphQL API capabilities, create a custom GraphQL query that will retrieve the data you need from Wiz IO. This query should be tailored to the specific requirements of your use case, and should conform to the GraphQL schema used by Wiz IO.
Build the API call: Using ServiceNow's Scripting capabilities, build the API call to Wiz IO using the custom GraphQL query you created in step 1. You may need to use a third-party library to handle the GraphQL requests and responses.
Process the response: Once you receive a response from Wiz IO, you will need to process it to extract the relevant data and create records in ServiceNow. Depending on the format of the response, you may need to use JavaScript functions to parse the data and create records.
Schedule the integration: To automate the process of retrieving data from Wiz IO, you may want to schedule the integration to run at regular intervals. This can be done using ServiceNow's Scheduled Jobs functionality.
Overall, this approach requires some advanced expertise in working with GraphQL and JavaScript in ServiceNow. However, once set up, it can provide a way to retrieve data from Wiz IO and integrate it with your ServiceNow instance.
Hope this information is beneficial.
Thanks,
Punit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2023 03:43 PM
Hi Kannan Nair,
If Wiz IO only supports GraphQL API calls, and you need to call that API from ServiceNow, you will need to create a custom integration in ServiceNow that uses GraphQL to communicate with Wiz IO.
Here are the general steps you would need to follow:
Create a custom GraphQL query: Using the ServiceNow GraphQL API capabilities, create a custom GraphQL query that will retrieve the data you need from Wiz IO. This query should be tailored to the specific requirements of your use case, and should conform to the GraphQL schema used by Wiz IO.
Build the API call: Using ServiceNow's Scripting capabilities, build the API call to Wiz IO using the custom GraphQL query you created in step 1. You may need to use a third-party library to handle the GraphQL requests and responses.
Process the response: Once you receive a response from Wiz IO, you will need to process it to extract the relevant data and create records in ServiceNow. Depending on the format of the response, you may need to use JavaScript functions to parse the data and create records.
Schedule the integration: To automate the process of retrieving data from Wiz IO, you may want to schedule the integration to run at regular intervals. This can be done using ServiceNow's Scheduled Jobs functionality.
Overall, this approach requires some advanced expertise in working with GraphQL and JavaScript in ServiceNow. However, once set up, it can provide a way to retrieve data from Wiz IO and integrate it with your ServiceNow instance.
Hope this information is beneficial.
Thanks,
Punit