Guest User

Untitled

a guest
Mar 30th, 2018
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. `{
  2. "userName" : "UserName",
  3. "password" : "Password",
  4. "instance" : "Instance Name",
  5. "table":"incident",
  6. "sysId": "9d385017c611228701d22104cc95c371",
  7. "model":"{'assigned_to':'681b365ec0a80164000fb0b05854a0cd','urgency':'2','comments':'Elevating urgency, this is a blocking issue'}"
  8. }`
  9.  
  10. ` Map<String, Object> headers = new HashMap<>();
  11. headers.put(ServiceNowConstants.ACTION, ServiceNowConstants.ACTION_UPDATE);
  12. headers.put(ServiceNowConstants.RESOURCE, "table");
  13. headers.put(ServiceNowConstants.TABLE, msg.getTable());
  14. headers.put(ServiceNowConstants.SYSPARM_ID , msg.getSysId());
  15. headers.put(ServiceNowConstants.MODEL, msg.getModel());
  16. exchange.getOut().setHeaders(headers);`
  17.  
  18. `servicenow://${header.instance}?userName=${header.name}&password=${header.password}&apiUrl=${header.apiUrl}`
  19.  
  20. `<h2>HTTP ERROR 500</h2>
  21. <p>Problem accessing /servicenow/update. Reason:
  22. <pre>model must be specified</pre>`
Add Comment
Please, Sign In to add comment