Hi,
You can use Power Automate Flow to associate email records from a lead with the Lead's parent account record.
List the leads that have a parent account, and then list the email records associated with those leads.
Copy the email records associated with lead listed in the previous step to lead's parent account record by adding a new email record.
Accepting Entity Expression: if(empty(items('Apply_to_each_2')?['_acceptingentityid_value']),null,concat('queues(',items('Apply_to_each_2')?['_acceptingentityid_value'],')'))
Correlated Activity Id Expression: if(empty(items('Apply_to_each_2')?['_correlatedactivityid_value']),null,concat('emails(',items('Apply_to_each_2')?['_correlatedactivityid_value'],')'))
Currency Expression: if(empty(items('Apply_to_each_2')?['_transactioncurrencyid_value']),null,concat('transactioncurrencies(',items('Apply_to_each_2')?
['_transactioncurrencyid_value'],')'))
ID for template used Expression: if(empty(items('Apply_to_each_2')?['_templateid_value']),null,concat('templates(',items('Apply_to_each_2')?['_templateid_value'],')'))
Populate the Reading field with the parent account record id of lead.
Parent Activity Id Expression: if(empty(items('Apply_to_each_2')?['_parentactivityid_value']),null,concat('emails(',items('Apply_to_each_2')?['_parentactivityid_value'],')'))
Receiving Mailbox Expression: if(empty(items('Apply_to_each_2')?[_receivingmailboxid_value']),null,concat('mailboxes(',items('Apply_to_each_2')?['_receivingmailboxid_value'],')'))
Adding a custom prefix to the subject field identifies which lead it came from.
Service Expression: if(empty(items('Apply_to_each_2')?['_serviceid_value']),null,concat('services(',items('Apply_to_each_2')?['_serviceid_value'],')'))
SLA Expression: if(empty(items('Apply_to_each_2')?['_slaid_value']),null,concat('slas(',items('Apply_to_each_2')?['_slaid_value'],')'))
The result is shown below.
If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more.
If you have further questions, please feel free to contact me .
Best Regards,
Dengliang Li