You need to sign in to do that
Don't have an account?
Poorna Developer 13
Account lookup field update with custom field value
Hi Everyone,
I have Cus_Object__c and Account(Cust_Status__c in Account). In my Cus_Object__c have a field called 'Cus_Status__c' this field values are inserted by apex code.
Like:
Cus_Object__c cus = new Cus_Object__c();
cus.Cus_Status__c = 'Success';
Whenever the Cus_Status__c field value is not null, I need to update Cus_Status__c field value in my Account object Cust_Status__c field.
Is possible? Any Suggestions?
Thanks in advance.
I have Cus_Object__c and Account(Cust_Status__c in Account). In my Cus_Object__c have a field called 'Cus_Status__c' this field values are inserted by apex code.
Like:
Cus_Object__c cus = new Cus_Object__c();
cus.Cus_Status__c = 'Success';
Whenever the Cus_Status__c field value is not null, I need to update Cus_Status__c field value in my Account object Cust_Status__c field.
Is possible? Any Suggestions?
Thanks in advance.
You can take references from the below code.
Thank YouAll Answers
Seems possible with after insert/update trigger. Have you tried that?
Account objAcc = new Account(Id = cus.Account__c);
objAcc.Cust_Status__c = cus.Cus_Status__c;
update objAcc;
You can take references from the below code.
Thank You