Skip to content

Instantly share code, notes, and snippets.

Created Dec 20, 2016
What would you like to do?
JavaScript Frameworks
table.insert(function (context) {
var item = context.item;
var body = JSON.stringify(item);
var request = new http.ClientRequest({
hostname: "",
port: 80,
path: "/api/WCSendGrid?code=YourCode",
method: "POST",
headers: {
"Content-Type": "application/json",
"Content-Length": Buffer.byteLength(body)
return context.execute();
{body: context.item, json:true});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment