Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `{
- "userName" : "UserName",
- "password" : "Password",
- "instance" : "Instance Name",
- "table":"incident",
- "sysId": "9d385017c611228701d22104cc95c371",
- "model":"{'assigned_to':'681b365ec0a80164000fb0b05854a0cd','urgency':'2','comments':'Elevating urgency, this is a blocking issue'}"
- }`
- ` Map<String, Object> headers = new HashMap<>();
- headers.put(ServiceNowConstants.ACTION, ServiceNowConstants.ACTION_UPDATE);
- headers.put(ServiceNowConstants.RESOURCE, "table");
- headers.put(ServiceNowConstants.TABLE, msg.getTable());
- headers.put(ServiceNowConstants.SYSPARM_ID , msg.getSysId());
- headers.put(ServiceNowConstants.MODEL, msg.getModel());
- exchange.getOut().setHeaders(headers);`
- `servicenow://${header.instance}?userName=${header.name}&password=${header.password}&apiUrl=${header.apiUrl}`
- `<h2>HTTP ERROR 500</h2>
- <p>Problem accessing /servicenow/update. Reason:
- <pre>model must be specified</pre>`
Add Comment
Please, Sign In to add comment