trigger SB_Account_UnDelete_Trigger on Account (after undelete) {
Map<string,String> mapSettings = new Map<String,String>();
mapSettings = (new SVMXC.COMM_Utils_ManageSettings()).SVMX_getGlobalSettingList(new List<String>{'DCON007_SET001', 'DCON007_SET003'});
system.debug(loggingLevel.WARN, 'mapSettings DCON007 = ' + mapSettings);
Boolean isServiceBoardEnabled = false;
if(mapSettings.containsKey('DCON007_SET001') && mapSettings.get('DCON007_SET001') != null) {
isServiceBoardEnabled = Boolean.valueOf(mapSettings.get('DCON007_SET001'));
}
if(isServiceBoardEnabled && trigger.isAfter){
SB_Custom_IntegrationHelper intHelper = new SB_Custom_IntegrationHelper();
if(trigger.isUndelete){
intHelper.preparePlatformEvent('undelete', 'Account', trigger.newMap);
}
}
}
|
Field
|
Value
|
|---|---|
|
Name
|
The name you want to use for the template, for example, Account Undelete Template.
|
|
Identifier
|
Any unique identifier, for example, account_core_account_undelete.
|
|
Mapping Object
|
The custom object for which you are configuring real-time sync, for example, Account.
|
|
Action
|
Undelete
|
|
Field Mappings Operation
|
SFDC Namespace Transform
|
|
Field Mappings
|
{
|
|
Field
|
Value
|
|---|---|
|
Name
|
The name for the setting, for example, SFDC Real-Time Sync Customize Transform Rules.
|
|
Applicable Application
|
Service Board
|
|
Identifier
|
This value is fixed and noneditable, and is always sfdc_realtime_sync_customize_transform_rules.
|
|
Datatype
|
Code
|
|
Default Value
|
{
|