So, I create a custom object called Form Submissions which currently has a lookup relationship with the Lead object. This relationship occurs automatically through the integration I created between Gravity Forms and Salesforce.
However, I'm struggling to figure out how to carry the relationship forward to Account and Contact objects when the Lead is converted. I'd like end-users to be able to see related Form Submissions when they view a Contact or an Account.
This is what the Form Submission object page looks like right now. I want those 2 lookup fields to populate automatically when the lead converts. I'm thinking maybe a Flow, but I'm not sure about the logic?
Any suggestions or best practices to achieve this?
Thanks in advance!
#Flow #Automation #Saleforce Administrator #Advanced Administrator #Best Practices For Administrators
Forum Ambassador Eric Praud (Activ8 Solar Energies)
Hi,
You would need a record triggered flow on Leads that triggers on conversion.
Add an Update record element to update the Form Submission record where Lead__c equals $Record.Id. You can now update the Accoutn and Contact lookups with
$Record.ConvertedAccountId and $Record.ConvertedContactId
https://salesforce-flowsome.com/flow-how-to-handle-converted-leads-related-records/