Problem while calling Outbound Rest message via business rule

Community Alums
Not applicable

Hi Friends,

While calling outbound rest message from Async business rule i am getting the below error 

REST Msg Outbound - RESTMessageClient : Error constructing REST Message/Method: IPinfo/GetIPInfo: com.glide.generators.InvalidGlideRecordException: Unable to find REST Message Record with Name

 

I have crosschecked manytimes the correct name of rest message and method , I have gone through lot of articles

related to this error but still couldnt find the exact solution. Can anyone please help me in this ASAP

 

Note: I am working in scoped application 

PFB code if needed

 

(function executeRule(current, previous /*null when async*/) {

// Add your code here
gs.addErrorMessage('Inside Business rule ASYNC');

try {
var r = new sn_ws.RESTMessageV2('IPinfo', 'GetIPInfo');
gs.addErrorMessage('Testing test message ....'+r);
r.setStringParameterNoEscape('spec', 'geo');
r.setStringParameterNoEscape('ip_add', current.ip_address);

var response = r.execute();
var responseBody = response.getBody();
var httpStatus = response.getStatusCode();
}
catch(ex) {
var message = ex.message;
}
})(current, previous);

 

 

6 REPLIES 6

SanjivMeher
Kilo Patron
Kilo Patron

Is you BR and the REST message on the same scope. Are you getting the same code when you do a Preview script usage on GetIPInfo?


Please mark this response as correct or helpful if it assisted you with your question.

Community Alums
Not applicable

no , it is giving some different name for REST message which i kept and tested even that doesn't work.

 

 var r = new sn_ws.RESTMessageV2('x_75348_iplookup.IPinfo', 'GetIPInfo');

Are you using a MID Server? If yes, can you check you ecc queue, if your request is sent or not?


Please mark this response as correct or helpful if it assisted you with your question.

Community Alums
Not applicable

no mid server Sanjiv