Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dynamics 365 online

Posted on by 1,075

Hi All,

In online crm I have 550 records for account and contact. I want to update existing account state and country field(both fields are blank right now) from the existing contact state and country field values.

As per me mapping fields do not works for existing record update. So, How can i updated account.

*This post is locked for comments

  • Suresh Sorde Profile Picture
    Suresh Sorde 1,075 on at
    RE: Dynamics 365 online

    Thanks Mahen & Aric...

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Dynamics 365 online

    This is for existing records, correct?

    You have a few options. The first questions is what is the relationship between Contact and Account. Do you have accounts with multiple contacts? If that is the case, they when you do the update, you can't really control which contact will update the account unless they are based on particular roles.

    Your first option, which is probably the easiest is create an On Demand Workflow on the Contact Entity. Add a step to Update the account entity, and set the parameters from contact in the account form.

    After you do that, go to the contacts view, select all records (you might need to do this a few times, once per page), click on the Run Workflow button on the command bar, and select the workflow you just created and published.

    Your second option is create an SSIS package, and use KingswaySoft Connect for Dynamics 365.

    Your source component (can be an OLEDB component or Dynamics CRM Source component) will retrieve the Contact Data, which will contain the ParentCustomerId (account), the state and the country.

    You would then use a Dynamics CRM Destination component on the account entity. You would use an Update method and map the ParentCustomerId to the accountId, and the state and the country fields from the Contact entity to the Account entity.

    Your third option is to create a simple console application (add the required CRM references), and you will need to create a couple of functions:

    RetrieveContacts function will return an Entity Collection with a list of all the Contacts, and make sure to add the parentcustomerid, state and country attributes to the Columnset

    UpdateAccount function will update the account by calling the update method and passing the account id (from parentcustomerid), the state and the country.

    Hope this helps.

  • Verified answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Dynamics 365 online

    Hi,

    you can write a .net console application where you can do this update or can create a custom workflow activity to do this.

    Thanks

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

Featured topics

Product updates

Dynamics 365 release plans