How do I Auto Populate a Custom Relate Field when Creating a Record from a Subpanel?

Hi all,

I'm attempting to populate a custom relate field (primary_contact_c) when creating an opportunity from a contact using the subpanel; the relate field in the opportunity should be populated with the contact that it is being created from.

I've found a few articles on here and on other sites which ask similar things but I've not made much progress with this.

Any help would be very much appreciated.

Many thanks in advance.

Parents
  • If instead of standard relate field type you instead use the Flex Relate field type, and create the Opportunity from the Contact subpanel, it will automatically populate the Contact for you. Relaxed

    As an alternative without using any relate fields, the Opportunity created this way already stores the related Contact as you can see if you run a report on Opportunities and add the Contact name to the report layout.
    Therefore, there must be a way to 'expose' this via code and not resort to 'duplicating this info'? 

    .

    CRM Business Consultant

Reply
  • If instead of standard relate field type you instead use the Flex Relate field type, and create the Opportunity from the Contact subpanel, it will automatically populate the Contact for you. Relaxed

    As an alternative without using any relate fields, the Opportunity created this way already stores the related Contact as you can see if you run a report on Opportunities and add the Contact name to the report layout.
    Therefore, there must be a way to 'expose' this via code and not resort to 'duplicating this info'? 

    .

    CRM Business Consultant

Children
No Data