web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Auto-populating Company fields on the Lead form

(0) ShareShare
ReportReport
Posted on by 2
Hello,
 
I am having trouble auto-filling Account information on the Lead form. When creating a new Lead on the Lead form, how can I ensure that the fields under the Company section are filled in automatically after selecting an Existing Account in the first step of the business process flow on the Lead form. Currently only Company field is auto-filled but the address fields and other company related fields are not.
I have the same question (0)
  • Suggested answer
    jonasschwarzwaelder Profile Picture
    47 on at
    Auto-populating Company fields on the Lead form
    Hi there,

    When you create a new Lead and select an existing Account in the Company (or Parent Account for Lead) field, Dynamics 365 does not automatically copy or synchronize additional company information such as address, phone, or website to the Lead record.

    This is expected behavior. Dynamics intentionally keeps the Lead record lightweight and only links it to the Account and Contact. The purpose of this relationship is to make sure that during the qualification process, the existing Account and Contact are reused and no duplicates are created. The Opportunity that results from qualifying the Lead will automatically stay connected to those records.
     
    If you want to populate Account information directly on the Lead form, there are two simple ways to achieve this:

    1. Recommended: Real-time workflow (inside Dynamics)

    Create a real-time workflow on the Lead table that triggers when the Parent Account for Lead field is updated.
    In this workflow, add an “Update Record” step to copy the required fields (for example, address, phone, website) from the related Account to the Lead.

    Since it runs in real time, the fields are updated immediately and visible on the form as soon as the record is saved.
     
    2. Alternative: Power Automate cloud flow

    Build a flow that triggers when a Lead is updated and the Parent Account for Lead field contains data.
    The flow retrieves the Account information and updates the Lead record with those details.

    Because Power Automate runs outside of the Dynamics real-time context, the user must manually refresh the form or reopen the record to see the updated data.

    Both approaches achieve the same functional result. The real-time workflow, however, provides the smoother experience directly within Dynamics without requiring a manual refresh.
  • Verified answer
    Kunal G Profile Picture
    12 on at
    Auto-populating Company fields on the Lead form
    Use JavaScript onChange of parentaccountid to retrieve Account via Xrm.WebApi.retrieveRecord(). Map Account fields (address, phone, etc.) to corresponding Lead fields using setValue().
  • CU23102133-0 Profile Picture
    2 on at
    Auto-populating Company fields on the Lead form
    @Kunal G Thank you! This was the solution!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 125

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 101 Super User 2025 Season 2

#3
Erin Lubben Profile Picture

Erin Lubben 57

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans