Netsuite Webhook Setup
Enable real-time data fetching from Netsuite to Violet
*Note: Functionality is currently limited to Purchase Orders*
Create a Netsuite Integration in Violet
Navigate to Violet and set up a new Netsuite integration.
Create a Webhook in Violet
Click your user profile picture in the bottom-left corner.
Go to the Webhooks page.

Click on + CREATE WEBHOOK URL
Select the Netsuite integration you created.
Copy the Webhook URL
Save the generated URL — this will only display once.
Download and Update the Script
Download the Violet Netsuite Webhook Script.
Replace
[PASTE WEBHOOK URL GENERATED IN THE VIOLET WEBHOOKS TAB HERE]with your Webhook URL.
Upload Script to Netsuite
Navigate in Netsuite to:
Customization → Scripting → Scripts → New.Upload the script and give it a name.
Deploy the Script
Under the Deployments tab:
Set Applies To →
Purchase Order.Set the deployment Status →
Released.
Save the script.
Set Audience
Open the script deployment page.
Under Audience, select
All Employees. This will ensure that the script runs on the appropriate create or edit actions regardless of which user takes the action.
Verify Webhook Functionality
The webhook should now fire events to Violet whenever a PO or PO line is created or edited.
Note: Deletes are not supported by Webhooks - they will be reflect on the next scheduled fetch from Netsuite.
Test Webhook Functionality
Edit a Purchase Order within Netsuite, and change the location of the Purchase Order.
Within Violet, go into the integration timeline on your Netsuite integration (under
Apps → [Your Netsuite Integration Name] → Click the Timeline icon labeled "View Integration Timeline”)Check and see if you see a
webhook eventwithin the timeline, near the top.Check and see if the changed location updates within the corresponding entity in Violet. This may take a few minutes to process.
If any of these steps do not work, contact Violet.
Possible Errors
Error on saving edited PO:
Error An unexpected error has occurred. Please click here to notify support and provide your contact information.Cause: Script deployment in Netsuite is not working correctly.
Solution: Delete the deployment and script, then start over from step 5. If the issue persists, contact Violet.
Changes not showing in Violet (no error on save):
Check the Netsuite script execution log for errors sending the webhook.
Check the integration timeline (under
Apps → [Your Netsuite Integration Name] → Click the Timeline icon labeled "View Integration Timeline”) in Violet for processing errors.Contact Violet with the collected information.
Last updated
Was this helpful?
