Warranty integration with Dell Tech Direct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2023 04:56 AM
Hello ALL,
I am looking to integrate with Dell Tech Direct, to get the warranty information in SNOW. Activated the Warranty API
From Dell Tech Direct! & received the required information (Client ID, Secret value),
In SNOW created a Outbound REST Message by filling required details.
Endpoint
HTTP Query parameters
HTTP Request
After the configuration, when i tested in SNOW, I am getting the below error.
Can Please guide me, what is the possible reason for this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2023 05:29 AM
I just set this up for a client.
Create an oAuth registry entry to retrieve API key.
Set authentication on the Outbound REST to use the registry entry created above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2023 11:41 PM
Hello Bob Hage,
I was able to connect to the API, And getting the response, However from the response unable to fetch 'endDate'.
below is the script, which i am trying to fetch the endDate. PFA for the response.
(function executeRule(current, previous /*null when async*/ ) {
var st = current.serial_number.toLowerCase();
try {
var r = new sn_ws.RESTMessageV2('Warranty Tech Direct', 'Default GET');
r.setStringParameterNoEscape('servicetags', st);
r.setQueryParameter('apikey', gs.getProperty('DellTechDirectKey'));
r.setHttpTimeout(10000);
r.setEccParameter('skip_sensor', true);
var response = r.execute();
var responseBody = response.getBody();
var httpStatus = response.getStatusCode();
gs.info("Status = " + httpStatus);
gs.info("Response Body = " + responseBody);
if (httpStatus == '200') {
var responseObj = JSON.parse(responseBody);
var edate = responseObj.endDate.toString();
current.warranty_expiration = edate;
} else {
gs.addErrorMessage('Looks like we ran into a problem. HTTP status: ' + httpStatus);
}
} catch (ex) {
var message = ex.getMessage();
}
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2023 07:38 AM
There are several warranty contracts returned from Dell. Here is a snipit of the code I used to identify each of the contract end dates. I built a Warranty contract for each unique entry returned in the array and then added the asset to the Assets Covered related list for that contract.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2024 11:57 AM
Hello Bob, I am running into the some issues setting up the Oauth registry; My screenshot is below
When I try "Get OAuth token" ; I get below error; Pls help !