there are some contacts of different types under accounts, i want to autopopulate these contacts of respective type in to the custom fields which are lookup to contact object in the opportunity field section,how can i achieve this with apex code
Thanks Kevin,but my requirement is incomplete with this code i want to autopopulate these contacts in to Opportunity Object in to respective custom fields.
Hi kevin there is similar kind of request as above i need apex trigger code to autopopulate the custom fields(lookup to contact) on the new opportunity object from the existing opportunity associated to the same account upon creating the new opportuntiy.
I think I'd do this with a trigger. Something like this: (Note, this is essentially pseudocode and not intended to compile)
i need apex trigger code to autopopulate the custom fields(lookup to contact) on the new opportunity object from the existing opportunity associated to the same account upon creating the new opportuntiy.