The CreatorCon Call for Content is officially open! Get started here.

How to use RESTMEssageV2.setEccTopic and have the REST call executed?

Jean Ferreira
Giga Guru

In order to maintain an external endpoint up to date with my ServiceNow data I had to create an Business Rule After Delete.

I tried to apply a "when to run" async but the current variable is null and does not have the data I need to send.
Since, in some point, I'm going to need the output of the endpoint, and to avoid freeze the thread, on my RESTMEssageV2 call in my  Business rule I execute the executeAsync method.

Then I've followed these articles KB0694711 KB0563615 KB0855595 

I created another Business rule in ecc_queue table and I set the topic in my RESTMEssageV2 object

find_real_file.png

But my MID server is not executing the REST call and I'm not getting an output.
The Business Rule on ecc_queue table is working because I see my debug logs on sys_log table.

find_real_file.png

Is there anything I could have missed in this process?

One article says that I need a probe, the other says a sensor and the last one says a Business Rule... I don't know what is required for having this done.

 

Error string: "The MID Server code is unable to run this ECC Queue output topic."

1 ACCEPTED SOLUTION

Jean Ferreira
Giga Guru

I solved the problem following the documentation in <https://www.servicenow.com/community/developer-articles/outbound-integrations-using-soap-rest-perfor...
Basically I created a custom business rule and set the fields according my need.

View solution in original post

2 REPLIES 2

Jean Ferreira
Giga Guru

I solved the problem following the documentation in <https://www.servicenow.com/community/developer-articles/outbound-integrations-using-soap-rest-perfor...
Basically I created a custom business rule and set the fields according my need.