You need to sign in to do that
Don't have an account?
Andrew Likens
Update Contacts From Account When Field Value is Changed trigger
Here are my requirements:
1. I have accounts in a 'Potential Customer' picklist value for one of our custom fields on the account "Account_Status__c." When that value is changed from "Potential Customer" to "Customer", I want to invoke a method "ContactUpsert.ContactUpdate(con.Id)." However, I ONLY want to invoke that method when Account_Status__c is "Customer" and a field on the contact Contact_Status__c is "Contact." Otherwise, all related contacts to an account in the "Potential Customer" status should be static. Once that account is changed to "Customer" it should do an UPDATE to all related contacts. It can be any update to the contacts as long as it's an update. Our internal API triggers when an object is updated in Salesforce. I'm a developer newbie so any help would be greatly appreciated!! Much thanks in advance!!
1. I have accounts in a 'Potential Customer' picklist value for one of our custom fields on the account "Account_Status__c." When that value is changed from "Potential Customer" to "Customer", I want to invoke a method "ContactUpsert.ContactUpdate(con.Id)." However, I ONLY want to invoke that method when Account_Status__c is "Customer" and a field on the contact Contact_Status__c is "Contact." Otherwise, all related contacts to an account in the "Potential Customer" status should be static. Once that account is changed to "Customer" it should do an UPDATE to all related contacts. It can be any update to the contacts as long as it's an update. Our internal API triggers when an object is updated in Salesforce. I'm a developer newbie so any help would be greatly appreciated!! Much thanks in advance!!
All Answers
Below approach is recommendable
Error: Compile Error: Method does not exist or incorrect signature: ContactCreate.ContactInitialCreate(Set<Id>) at line 29 column 17
Use only above code
Error: Compile Error: Method does not exist or incorrect signature: ContactCreate.ContactInitialCreate(Set<Id>) at line 29 column 17