Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Run MidServer command via script include

Paul126
Tera Contributor

Is there any easier way to add  a Command into the ecc_queue via a Script Include other than doing the following:

 

1. Use GlideRecord to enter the Command into the ecc_queue as an output

2. Grabbing the sys_id of that new record

3. Scanning the ecc_queue for resonse_to the sys_id of the inserted record

4. having to parse the stdout section of the XML for the data wanted

 

Really looking to not have to loop through the ecc_queue for my response.  Is there an easier way to submit a command through the MID Server via a Script Include?  I just cannot seem to find anything.

 

Thanks!

0 REPLIES 0