Skip to main content

Notifications

Microsoft Dynamics CRM forum
Suggested answer

Inherit account address in contact address.

Posted on by

Hi All,

I want to inherit the account address in contact entity when client select particular account name in lookup field present on contact entity.

5635.Untitled.png

How can i achieve it.

  • Suggested answer
    Aileen Gusni Profile Picture
    Aileen Gusni 44,522 on at
    RE: Inherit account address in contact address.

    Abhijit,

    If you create the contact from account context such as subgrid or associated view then it can be done using mapping.

    But your example mentioned about you create new contact then choose the lookup column which mapping wont work.

    I can give you some approaches here:

    1. You can use odata to retrieve the address fields from the selected account then copy to the address fields in your new contact.

    This must be done using javascript plus odata and register your script in the form and trigger during account lookup field on changed

    2. Create a workflow or plugin register during creating and once there is any changes in the account lookup. It is easier but you have to register it using plugin reg tool register the event and message also plus it can be called only after server side transactions meaning you cant get it before you save.

    3. Use the quick view form

    Creatw new account quick view form then put the address fields inside and then place it into the contact form.

    You can use the combination of the plugin so when users change the account lookup, quick view form will appear with new address field based on the selected account.

    After that you can run the plugin backend.

    So user can see the info up to date using quick view form while in your backend you actually save it using plugin or workflow for the sake of easier way.

    Hope this helps.

    Thanks!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Inherit account address in contact address.

    hello Abhijit

    I hope you make relations between this two . If not making it is the solution and then make relation between fields of these two entitiese.

    hope helps,

    Hoda Mousavi

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    Rajkumar Rajaraman 18,108 on at
    RE: Inherit account address in contact address.

    Abhijit,

    Refer the following instructions from the below mentioned link:-

    dynamicscrmgirl.wordpress.com/.../crm-2013-javascript-retrieve-record-using-odatarest-endpoint-without-jquery

    Hope this helps.

    Regards,

    R.Rajkumar

    "Please mark my answer as verified if you found it helpful"

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: Inherit account address in contact address.

    probably you can use a workflow , kindly look for such logic.

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,451 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,353 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans