Netsuite Webhook Setup

Enable real-time data fetching from Netsuite to Violet

*Note: Functionality is currently limited to Purchase Orders*

  1. Create a Netsuite Integration in Violet

  2. 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.

  3. Copy the Webhook URL

    • Save the generated URL — this will only display once.

  4. Download and Update the Script

  5. Upload Script to Netsuite

    • Navigate in Netsuite to: Customization → Scripting → Scripts → New.

    • Upload the script and give it a name.

  6. Deploy the Script

    • Under the Deployments tab:

      • Set Applies ToPurchase Order.

      • Set the deployment StatusReleased.

    • Save the script.

  7. 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.

  8. 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.

  9. 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 event within 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?