Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Where is the Quick Create: Account form getting its pull-through values from?

(0) ShareShare
ReportReport
Posted on by 30

I have added two custom Contact Lookup fields to the Account class. "Account Manager" and "Customer Contact"

I've added each field to the Quick Create: Account form.

When I click New from the "Account" field on a contact and the Quick Create: Account form loads, I see my two new fields fine, but the Account Manager field is somehow pre-populated with the value I actually want in the Customer Contact field:

QuickCreateAccount.pngpastedimage1589991549824v2.png

I've no idea how I've managed to pull through the Customer Contact from the Contact entity into the Account Entity. I want to do this, but I need to move this pull through to the Customer Contact property.

Anyone help?

Many thanks

John

  • Suggested answer
    Apajove Profile Picture
    Apajove 30 on at
    RE: Where is the Quick Create: Account form getting its pull-through values from?

    Hao, I am extremely grateful for this very detailed and clear solution. Your initial assumption about Customer Contact being the original PrimaryContact field was spot on. I've done as you suggested and it works PERFECTLY. First time!

    Very generous of you to spend the time on this for me. Thank you very much indeed.

  • Verified answer
    LuHao Profile Picture
    LuHao 40,872 on at
    RE: Where is the Quick Create: Account form getting its pull-through values from?

    Hi Apajove,

    If "Account Manager" and "Customer Contact" are custom fields, then when we click New in the Account field in the Contact form, both "Account Manager" and "Customer Contact" should contain data. This is by design and cannot be changed.

    pastedimage1590046481650v1.png        pastedimage1590046497894v2.png

    The reason why it cannot be changed is that the mappings in these two custom 1: N relationships cannot be deleted.

    pastedimage1590046615031v3.png        pastedimage1590046646981v4.png

    Therefore, if "Account Manager" and "Customer Contact" are custom fields, then both should contain data in the Quick Create form, not just "Account Manager".

    In summary, I guess "Account Manager" is a custom field, but "Customer Contact" is actually the original "Primary Contact" field.

    When an Account is created from the Contact form, the "Primary Contact" is empty, again by design, and cannot be changed.

    pastedimage1590046896639v5.png

    To verify whether this idea is correct, we only need to check whether the name of "Customer Contact" is primarycontactid.

    pastedimage1590047670545v6.png


    If the above ideas are correct, then to make "Customer Contact" contain data and "Account Manager" empty, we need to do two steps.

    Step 1. New a custom Contact lookup field "Customer Contact" instead using "Primary Contact" field.

    Step 2. Create a Javascript OnLoad event for "Account Manager" in the Quick Create form to clear this field.

    function hidevalue() {
    
        Xrm.Page.getAttribute("new_accountmanager").setValue(null);
               
    }

    pastedimage1590051223239v3.png

    pastedimage1590051171419v1.png

    pastedimage1590051208709v2.png

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Where is the Quick Create: Account form getting its pull-through values from?

    Hi,

    Please check your field mappings.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans