Reputation: 181
const newMessage = {
"name": "PushChangesToServicePortal_TEST",
"sys_name": "PushChangesToServicePortal_TEST",
"rest_endpoint": "XXXX-api",
};
let createMessageRes = await post(RESOURCE_URL, newMessage, {"Authorization": auth});
I'm able to create outbound REST Message using this code. How can I add/create HTTP method into it using table API?
Upvotes: 0
Views: 187
Reputation: 609
You can generate javascript code for the request you want with "Rest API Explorer" in "System web services" in SNOW. How to article here:
Documentation of the API is here:
https://developer.servicenow.com/app.do#!/rest_api_doc?v=newyork&id=r_TableAPI-GET
Upvotes: 1