Can we use the ECC queue for custom integrations?

davidmcdonald
Kilo Guru

Hi all,

I was wondering if it was safe to use the ECC queue for a custom integration?

Background is that we have an instance-to-instance integration, and web service calls are getting noticeably long. I'd like to queue outbound requests and process them in the background so it doesn't impede the user.

It looks like the ECC Queue table has the 'Agent' field, and setting it to something custom makes it never get processed, so it seems that it'd be safe to use.

Any thoughts or tips on custom use of the ECC queue?

1 ACCEPTED SOLUTION

Hi David, indeed you can and it's safe to do so.



By definition that's the purpose of the ecc queue, which stands for "External Communications Channel".



Thanks,


Berny


View solution in original post

4 REPLIES 4

sachin_namjoshi
Kilo Patron
Kilo Patron

ECC queue can be used to integrate with other systems, it does not automatically capture all the web service communications.



You can talk to the ECC queue via web services and create your integration based on it. However, if you talk to a table in ServiceNow directly (or any scripted web service), you will not find it in the ECC queue.



Below is sample code



try {


var s = new sn_ws.SOAPMessageV2('ND_Create_Change', 'create_change');



//override authentication profile


//authentication type ='basic'


//r.setAuthentication(authentication type,profile name);



s.setStringParameter('short_description', 'Hello this is the first change Request');


var response = s.executeAsync();


var responseBody = response.getBody();


var status = response.getStatusCode();


}


catch(ex) {


var message = ex.getMessage();


}



You may find below links useful.



SOAPMessageV2 API - ServiceNow Wiki



Debugging web services in ServiceNow



Regards,


Sachin


Hi Sachin,



All good there, I was more wondering if we could manually insert records into the ecc_queue table, and have a scheduled repeating script process our own items in the ECC queue.



Sort of like how the LDAP Test Probe does, it doesn't follow the 'mid.server....' naming convention and just uses its own.



Is it safe to use the ecc_queue for another, non-mid-server purpose?


Hi David, indeed you can and it's safe to do so.



By definition that's the purpose of the ecc queue, which stands for "External Communications Channel".



Thanks,


Berny