Getting "undefined" value from REST Outbound Message

NehaSNOW
Tera Guru

Hi Members,

 

I am getting the "undefined" values from the Query Parameter of the REST Outbound message (refer the screenshot). But when the Parameter values are passed from the Endpoint then they are received properly e.g. https://<instanceid>service-now.com/api/918167/incident/create_incident?correlationid=${corrid}&shortdescription='${shortdesc}'.

Please suggest.

Release: Xanadu

 

The Scripted REST API is: - 

NehaSNOW_0-1739019002898.png

 

Query Parameter of the REST Outbound Message POST: -

NehaSNOW_1-1739019089918.png

 

Logs: - 

NehaSNOW_2-1739019136163.png

 

 

 

1 ACCEPTED SOLUTION

NehaSNOW
Tera Guru

I have fixed it by myself.

View solution in original post

11 REPLIES 11

Okay, there seems to be something wrong with the receipt, as soon as possible I will try to generate this scenario to contribute to a solution.

Ankur Bawiskar
Tera Patron
Tera Patron

@NehaSNOW 

what's the HTTP method?

Seems you have configured variable substitution but not query parameter

Request Headers and Query Parameters 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar It is POST:-

 

NehaSNOW_0-1739029422390.png

 

NehaSNOW
Tera Guru

I have fixed it by myself.

Natan F Rosa
Kilo Guru

Hi @NehaSNOW 

Whats was problem?