We currently what to set up a webhook to be ingest...
# suitescript
s
We currently what to set up a webhook to be ingested in Netsuite is a reslit the correct way to go?
m
Setup a webhook inside of netsuite or an outside webhook that will push data to netsuite?
s
outside webhook that will push data to netsuite
m
Yes, a restlet is the way to go then
b
restlet is only an option if the sender supports oauth 1 or less commonly tba
suitelet is only an option if the sender supports setting the user agent header to a favorable value
both are unusual enough that the typical solution is that you host the receiver for the webhook and then send to netsuite
else use an integration service that does it for you
m
At a previous company I used a Google Cloud Function to rewrite the User Agent for a Suitelet, for their usage it fell well within the free tier https://stackoverflow.com/a/58514482
👍 1
e
You can do this with AWS CloudFront Functions as well. We do this in front of Suitelets for webhooks coming from various places.