Вы находитесь на странице: 1из 35

Trigg Trigge// Set<Id> accountClassi et];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}et<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

et];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}et<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

et];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}et<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

et];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}et<String>();
/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

ficationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

Set<Id> accountClassificationIdSet = new Set<Id>();


Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

////////////////subir2 Trigge//////////////////subir2e
Trigge//////////////////subir2Trigge//////////////////subir2Trigge///////////////////////////////////
////////////////ge///////////////////////////////////////////////////
Trigge///////////////////////////////////////////////////
Trigge///////////////////////////////////////////////////Trigge////////////////////////////////////////
///////////r TBO001_t i insert, before update, after update, after delete) {

Trigge//////////////////subir2insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);
}

insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();


if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

insert, before update, after u insert, before update, after update, after delete) {
Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

pdate, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

nsert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {
accountSet.add(classification.TBO001_rb_Account__c);

insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();


if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

insert, before update, after update, after delete) {


Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

gr_AccountClassification on TBO001_AccountClassification__c (before insert, after

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

}
//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

//

accountClassificationIdSet.add(classification.Id);

System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);

System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();

Set<String> accountExtRefIdSet = new Set<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}trigger TBO001_tgr_AccountClassification on TBO001_AccountClassification__c (before insert,


after insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

}
if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

//

accountClassificationIdSet.add(classification.Id);

System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);

System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();

Set<String> accountExtRefIdSet = new Set<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}trigger TBO001_tgr_AccountClassification on TBO001_AccountClassification__c (before insert,


after insert, before update, after update, after delete) {
Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

//

accountClassificationIdSet.add(classification.Id);

}
System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);

System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();

Set<String> accountExtRefIdSet = new Set<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}trigger TBO001_tgr_AccountClassification on TBO001_AccountClassification__c (before insert,


after insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {
accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

//

accountClassificationIdSet.add(classification.Id);

System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);

System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();


Set<String> accountExtRefIdSet = new Set<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}trigger TBO001_tgr_AccountClassification on TBO001_AccountClassification__c (before insert,


after insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);
}

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

//

accountClassificationIdSet.add(classification.Id);

System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);

System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();

Set<String> accountExtRefIdSet = new Set<String>();

/**

List<Account> accountList;

try {
accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,
ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}trigger TBO001_tgr_AccountClassification on TBO001_AccountClassification__c (before insert,


after insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {
accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

//

accountClassificationIdSet.add(classification.Id);

System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);

System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();

Set<String> accountExtRefIdSet = new Set<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');


}trigger TBO001_tgr_AccountClassification on TBO001_AccountClassification__c (before insert,
after insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

//
accountClassificationIdSet.add(classification.Id);

System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);

System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();

Set<String> accountExtRefIdSet = new Set<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}trigger TBO001_tgr_AccountClassification on TBO001_AccountClassification__c (before insert,


after insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();


if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

//

accountClassificationIdSet.add(classification.Id);

System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);


System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();

Set<String> accountExtRefIdSet = new Strigger TBO001_tgr_AccountClassification on


TBO001_AccountClassification__c (before insert, after insert, before update, after update, after
delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {
ownerIdsSet.add(classification.OwnerId);

//

accountClassificationIdSet.add(classification.Id);

System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);

System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();

Set<String> accountExtRefIdSet = new Set<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}trigger TBO001_tgr_AccountClassification on TBO001_AccountClassification__c (before insert,


after insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();


Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

//

accountClassificationIdSet.add(classification.Id);

}
System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);

System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();

Set<String> accountExtRefIdSet = new Set<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}trigger TBO001_tgr_AccountClassification on TBO001_AccountClassification__c (before insert,


after insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);
}

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

//

accountClassificationIdSet.add(classification.Id);

System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);

System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();

Set<String> accountExtRefIdSet = new Set<String>();


/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}trigger TBO001_tgr_AccountClassification on TBO001_AccountClassification__c (before insert,


after insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

}
}

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

//

accountClassificationIdSet.add(classification.Id);

System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);

System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();

Set<String> accountExtRefIdSet = new Set<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}trigger TBO001_tgr_AccountClassification on TBO001_AccountClassification__c (before insert,


after insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

}
if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

//

accountClassificationIdSet.add(classification.Id);

System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);

System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();

Set<String> accountExtRefIdSet = new Set<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}trigger TBO001_tgr_AccountClassification on TBO001_AccountClassification__c (before insert,


after insert, before update, after update, after delete) {
Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

//

accountClassificationIdSet.add(classification.Id);

}
System.debug('Is Insert: ' + Trigger.isInsert);

System.debug('Is Update: ' + Trigger.isUpdate);

System.debug('Is Delete: ' + Trigger.isDelete);

System.debug('Account Set: ' + accountSet);

Map<Id, Account> accountMap = new Map<Id, Account>();

Set<String> accountExtRefIdSet = new Set<String>();

/**

List<Account> accountList;

try {

accountList = [SELECT Id, ACC_tx_Account_Tier__c, ACC_tx_EXT_REF_ID__c,


ACC_tx_Customer_Since__c, CreatedDate, ACC_un_Capex_Exposure__c,
ACC_un_Technology_Exposure__c, ACC_un_Fleet_Exposure__c,
ACC_un_Real_Estate_Exposure__c, ACC_tx_Account_Status__c FROM Account WHERE Id IN
:accountSet];

catch (Exception exAccList) {

System.debug('Error: ' + exAccList.getMessage() + ' (Line: ' + exAccList.getLineNumber() + ').');

}trigger TBO001_tgr_AccountClassification on TBO001_AccountClassification__c (before insert,


after insert, before update, after update, after delete) {

Set<Id> accountClassificationIdSet = new Set<Id>();

Set<Id> accountSet = new Set<Id>();

Set<Id> ownerIdsSet = new Set<Id>();

if (Trigger.isInsert || Trigger.isUpdate) {

for (TBO001_AccountClassification__c classification : Trigger.new) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {
accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

ownerIdsSet.add(classification.OwnerId);

accountClassificationIdSet.add(classification.Id);

//

else if (Trigger.isDelete) {

for (TBO001_AccountClassification__c classification : Trigger.old) {

if (!accountSet.contains(classification.TBO001_rb_Account__c)) {

accountSet.add(classification.TBO001_rb_Account__c);

if (!ownerIdsSet.contains(classification.OwnerId)) {

Вам также может понравиться