Working with Netcool/IMPACT 7.1.0.15 I have to put and incident request to Service NOW. In the resultset I see the incindent number that Service Now returns but I don't know how to read this value from the object.
Code:
data = {};
config = {};
data['short_description'] = NotificationOrgNodes[0].Summary;
data['cmdb_ci'] = NotificationOrgNodes[0].ZZHostName;
data['urgency'] = NotificationOrgNodes[0].Severity;
config['data'] = data;
Log("config:"+config);
result = RESTfulAPIPOST("DS-ServiceNow", "", config);
Log("Result:"+result);
Log("Incidentnr:"+result('number'));
This part works except for th last line which states during execution that result is not a function but an object.
Answer by vandna0408A4 (1) | Mar 08 at 03:32 AM
Hi,
I think ServiceNow response is coming in a JSON or XML format. So you have to parse the result to string before using it directly.
Can I automate MWM in Netcool Impact 7.1 by importing .csv files? 1 Answer
Is there a way to increase threads for the JRExec Server on Impact 7.1.0? 1 Answer
Migrating Impact 7.x between servers (OS Upgrade) 0 Answers
Using Impact v 7.1.0.4, Is there a way to rename Impact Server Instance ? 1 Answer