You need to sign in to do that
Don't have an account?
Sebastian Röder_Cognizant
Update lookup field by Trigger
Hi,
i facing following issue:
We Have Obj. Account and Obj. B__c.
On Object Account we have a ID__c which stores an ID. Now we get this ID from an external System written in an text field on Obj. B__c
Now i need a piece of code which matches teh ID from Obj. B__c with the ID from Account and if a match is found the LOOKUP on Obj. B__c should be populated with the ACCOUNT NAME which has the same ID.
I hope it is undersantable and anyone can help me out with some link for ressources.
Thank you.
Sebastian
Let me know if you need any help regarding this,
Thanks,
Vijay
All Answers
Let me know if you need any help regarding this,
Thanks,
Vijay
HI @Vijay thanks for your post. I have a question regarding:
for(Account acc : [SELECT Id__c FROM Account WHERE Id__c IN : accountIds]){......
Id__c is this supposed to be the field from ACCOUNT object or from b__c Object?
Thanks,
Vijay