Read ECC Queue payload
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2013 04:10 PM
Hello,
I have written a jar file uploaded on mid server. I am able pass message to write to ecc_queue and update problem object. Also, I am writing pay loads to ecc_queue every time problem is inserted or updated.
What I want to know if there is a way to read ecc_queue payload(xml data) using custom class that are part of jar file and parse the xml file.
Thanks
Vicky
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2013 06:55 AM
Sounds like the right kind of flow. I hope this works for you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2019 03:52 AM
Do it this way......
var grQue=new GlideRecord('ecc_queue');
grQue.addQuery('sys_id','443660881b51c4d00d5221be6e4bcb15');
grQue.query();
if(grQue.next())
{
var text =grQue.payload+'';
var xmlhelp = new XMLHelper(text);
var x = xmlhelp.toObject();
gs.print("tag is: " + x.result.stdout);
}