Reset Filters

SmartConnect 2018

Salesforce Triggers

Triggers are automatically created inside Salesforce whenever a Salesforce real time data source is registered inside SmartConnect.

 

Insert trigger:

The insert triggers is created as follows..

 

Trigger eOne_SC_RTDS_<ENTITY>_I on <ENTITY> (after insert) {

 set<ID> ids = Trigger.newMap.keyset();

 eOne_SC_RTDS.Process('<ENTITY>','insert',ids); }

where <ENTITY> is the Salesforce object triggering the insert

 

e.g. a trigger on Account inserts would be

Trigger eOne_SC_RTDS_Account_I on Account (after insert) {

 set<ID> ids = Trigger.newMap.keyset();

 eOne_SC_RTDS.Process('Account','insert',ids); }

 

Update trigger:

The update triggers are created as follows

 

Trigger eOne_SC_RTDS_<ENTITY>_U on <ENTITY> (after update) {

 set<ID> ids = Trigger.newMap.keyset();

 eOne_SC_RTDS.Process('<ENTITY>','update',ids); }

where <ENTITY> is the Salesforce object triggering the update

 

e.g. a trigger on Account updates would be

 

Trigger eOne_SC_RTDS_Account_U on Account (after update) {

 set<ID> ids = Trigger.newMap.keyset();

 eOne_SC_RTDS.Process('Account','update',ids); }