You need to sign in to do that
Don't have an account?
Automatically Fill-In A Look-Up Relationship Field
Hello,
On my custom object, "Projects," there is a field we manually fill in that connects it to the Opportunity object. However I also need a look-up relationship field that automatically populates the Account Name and connects the Project to the Account object. Where do I start and how can I do this? Is there a template formula I can use?
Thanks!
On my custom object, "Projects," there is a field we manually fill in that connects it to the Opportunity object. However I also need a look-up relationship field that automatically populates the Account Name and connects the Project to the Account object. Where do I start and how can I do this? Is there a template formula I can use?
Thanks!
You cannot create formula field for this, because formula will not populate look up field. I have written trigger for this. I am assuming that you projects object has API name of Project__c and its has Opportunity__c as look up field. Now you will create one new look up field Account__c for Account. If whenever you populate opportunity, the trigger will populate Account. If your API names are different, please update in the code. Let me know, if you need any other help.
Thanks,
Neetu