Calling a external API when a transaction happens
Can anyone recommend how to call a external API to send data after a transaction occurs? For example after a sale happens I want to call my CRM api and store the customer data there.
Rookie Asked on March 6, 2023 in Best Practices.
if it is a NetSuite to External API/system flow:
then you can deploy a UserEvent Script(afterSubmit) that triggers when “transaction occurs” or simply when transactions are submitted.
use the N/https module to send/post data to the external API/system
when you do so, follow the authentication method and format of the data, as endorsed by the external API.