Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Account base -Comapny

Posted on by 5,005

How to know which company does my account base belongs to..  as we have 2 companies

*This post is locked for comments

  • sandeepc Profile Picture
    sandeepc 5,005 on at
    RE: Account base -Comapny

    last question is it possible to findout the record in crm account is from which company

  • Verified answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Account base -Comapny

    That means that the value from NAV and the value from CRM for the records that should match and are not matching are different. It is possible that this is due to spaces after the name for example. We had to use a lot of RTRIMs in our SQL statements when importing from GP, since the lookup controller will not see "AccountName" and "AccountName " as being the same.

  • sandeepc Profile Picture
    sandeepc 5,005 on at
    RE: Account base -Comapny

    its matching it means its updating but still some duplicates are creating in sccount

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Account base -Comapny

    You will need to add a Lookup component that will query CRM. Since you are using CRM 2013, this is pretty straight forward.

    Make sure that you have a connection to the CRM database server.

    After reading the data from NAV, there should be some field that you decide will be your key field to search for.

    Create a lookup component, set the source to the CRM database, and enter a query to retrieve the accounts (with accountid field and accountname/accountnumber fields). There is where you are doing the match.

    From the lookup component, you have two results - Match and No Match. The ones that match will go to update a record, the ones that don't match will create a new record.

    See sample SSIS package screenshot on similar type of scenario (this is from GP, but logic is more or less the same).

    The first screenshot takes the data from GP into staging table and updates if this is a New record or existing record

    ssis_5F00_lookup2.png

    The second screenshot takes the data from Staging table to CRM, checks if record exists, and runs an Upsert option on CRM Destination Component.

    SSIS Lookup 1

    You can probably merge the logic of both into one solution, and not need both. We need staging in our case, as not all the data goes into CRM.

  • sandeepc Profile Picture
    sandeepc 5,005 on at
    RE: Account base -Comapny

    how to findout match field in ssis package that will verify update or create option

  • sandeepc Profile Picture
    sandeepc 5,005 on at
    RE: Account base -Comapny

    yes we are updating from ssis connector=cozyroc

  • Verified answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Account base -Comapny

    How are you updating the records from NAV to CRM? SSIS, Connector?

    You should have some match field in the Company/Account entity that will verify if it's an update or a create action.

  • sandeepc Profile Picture
    sandeepc 5,005 on at
    RE: Account base -Comapny

    we are updating all the records from nav but here we got some bug instead of updating its creating so we need to identify the created records are from which company is that possible to findout

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans