To show the different technology which can be use to push data to the external client by using Skyvva. For example, different possibility like: Using Trigger, Process Builder process, Flow, Apex class to send data out. The callout methods are using to send data from salesforce to external system (SFDC to SAP/SAP-PI) through interface outbound. The Service only sends one record/children per request to SAP. To invoke callout from apex trigger the method invokeCallout(interfaceId, ids, ‘AUTO’) is recommended.
Why we use button, trigger, the process build process to push data from salesforce? #
- Button : when user push a button the change data should sent
- Trigger: When a record is changed the change data should sent.
Trigger #
When a record is changed the change data should sent. Whenever a record e.g. an account in Salesforce is changed this change are sent immediately to the client. This is the opposite way to the batch/async. variant.
Follow the given steps:
- Select Trigger Type “APEX TRIGGER”
- Tick Trigger Event (can tick more than one)
- Select your Integration Name
- Select your Interface Name (show only outbound interface)
- Select SObject Name
- Select Trigger Mode : None, Auto, Future, Batch
- Click button “Generate Script”
- Now you will see the script apex trigger in the box and can copy to use it
- In the script, change to your own name <trigger name> to your own name
Button #
- Select Trigger Type “BUTTON”
- Select your Integration Name
- Select your Interface Name (show only outbound interface)
- Select SObject Name
- Select Trigger Mode: Sync,Future,Batch
- Click button “Generate Script”
- Now you will see the script trigger button in the box and can copy to use it.