Close
Thank you for your feedback.

RESTMessageV2 - RESTMessageV2(String name, String methodName)

RESTMessageV2 - RESTMessageV2(String name, String methodName)

Instantiates a RESTMessageV2 object using information from a REST message record.

You must have a REST message record defined before you can use this constructor.

Table 1. Parameters
NameTypeDescription
nameStringThe name of the REST message record.
methodNameStringThe name of the HTTP method to use, such as GET or PUT.

Example

var sm = new sn_ws.RESTMessageV2("Yahoo Finance","get"); //Might throw exception if message doesn't exist or not visible due to scope.

Products > ServiceNow Platform > Outbound REST web service; Versions > Istanbul