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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Automatically get Parent Account Data in Contact Quick Create

(0) ShareShare
ReportReport
Posted on by 552

Hi together,

I've given a task that I can't solve and maybe somebody can help me....

So, when a client wants to create an opportunity and he wants to quick create a contact, who he needs,
the fields should be automatically filled out with the data (street, city, country, etc) of the parent account of the contact when chosen in the contact form (field Account Name).

Does anybody has an idea how to solve this problem?

Many thanks in advance and best regards

Mick

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Clem Profile Picture
    2,541 on at

    Hello,

    You can do this via some javascript.

    On the OnChange event of the account field, you can perform a webapi call (example for webapi call in js : community.dynamics.com/.../260245) in order to retrieve your account data and push them into your contact form.

    Regards,

    Clément

  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    In addition to that you can look sample code here http://himbap.com/blog/?p=2874

  • Suggested answer
    Shidin Haridas Profile Picture
    3,499 on at

    Do check out the link shared by Clement and Mahen.

    Since you are on CRM 9.0, avoid using the Xrm.Page methods and use the 'getFormContext' methods as the former is going to be depreciated.

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/clientapi-form-context

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    You can create a workflow to do so that if you do not want any code involved. But of course, it needs to wait until user click save.

    3056.29.png

  • Mick_4711 Profile Picture
    552 on at

    Hi Wei,

    Thanks for your answer.

    I tried this workflow yesterday, but this didn't work unfortunately.

  • Mick_4711 Profile Picture
    552 on at

    Hi Shidin,

    We still use the 8.2 Version.

  • Mick_4711 Profile Picture
    552 on at

    Hey Mahender,

    thx very much. I'm gonna try this.

  • Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    If you are using workflow, the result only show up when the record is saved.

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    I've made a short video for you to reference.

    https://youtu.be/BqC2lUFVCAQ

  • Mick_4711 Profile Picture
    552 on at

    Unbelievable, Wei!

    Many many thx!

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans