If you are creating a custom flow to send information from Salesforce to NetSuite, you have two options for exporting data from Salesforce: Scheduled and Realtime.
For Scheduled, you can create a SOQL query to fetch the data from Salesforce.
Realtime is the option where you would need to write Salesforce APEX code. In this case, after you selected the SObject type you want to use (such as Account), we then provide you with the Required trigger in APEX code. So you don't have to write anything! All you need to do is copy this trigger code and insert it into the trigger you create manually in your Salesforce account.
For example, for Account:
trigger <name> on Account (after insert, after update)
The function processExport() replaces run() above to resolve infinite loop issues and resolves issues with runBatch() (which we do not recommend using).
Please sign in to leave a comment.