You need to sign in to do that
Don't have an account?

RECORD TYPE FIELD UPDATE
I have three record type C2B B2B D2B for contacts i have to update account amount filed with sum of contacts amount field WITH DIFFERENT RECORDTYPE
eg: 10,000(C2B AMOUNT)+10,000(D2B MOUNT )-10,000(B2B AMOUNT)=AMOUNT(ACCOUNT FILED)
This should serve your purpose!
- Harsha
All Answers
- Harsha
Map<ID,RecordType> typeMap = New Map<ID,RecordType>([Select ID, DeveloperName From RecordType Where sObjectType = 'CONTACT']);
for (CONTACT CON : trigger.new)
{
LIST<Account> acc=[SELECT PAID_AMOUNT__c,BALANCE_AMOUNT__c,amount__c FROM Account ];
// If the Record Type = Intake Form
if (CON.RecordType.DeveloperName == 'C2B' || CON.RecordType.DeveloperName == 'D2B')
{
}
}
}
=================
m unable to query this further ...........
This should work. Give a try.
- Harsha
This should serve your purpose!
- Harsha