Synchronize NetSuite Cases with Salesforce Cases > Using the Synchronize NetSuite Cases with Salesforce Cases recipe > Invoking the process
  

Invoking the process

You must create a script to generate the GET request that calls the process.
To invoke a process, you must configure the script and include the process URL. Trigger the process, which is called by a web request from the NetSuite script when a Case entity is created or updated. The process takes the Case ID from the request, calls NetSuite to get all data from the Case entity. The process tries to find an account in Salesforce by NetSuite_ID based on the value of the account ID field. If a match is found, it updates the Salesforce account; if not, it creates a new account in Salesforce.
For Contact entities, the process follows the same steps as for Account entities, with the addition of creating an account to which the contact is associated. If no contact is specified, the process creates one with the first name (Primary Contact) and last name (Company Name) and uses data from the account.
The process attempts to find a Case in Salesforce by NetSuite_ID based on the value of the Case ID field. If a match is found, it updates the Salesforce Case; if not, it creates a new case in Salesforce.