Skip to main content

Notifications

Microsoft Dynamics RMS (Archived)

RMS HQ inserting Customers programmatically

Posted on by 580

Has anyone successfully inserted customers into HQ programmatically?  We need to do this to insert employees as customers from an outside source.  It seems fairly simple, even incrementing that ID/HQID (1073741825) number manually.  However, when one of the stores adds a global customer locally, it adds it to HQ with an existing ID/HQID.  This causes havoc, duplicating and overwriting a customer at the same time between the stores and HQ.  Is there a table with a counter in it in the RMS database that I'm missing?  Any help is appreciated.  I am an RMS certified partner.

 

thanks,

Mary

*This post is locked for comments

  • Mary Scheible Profile Picture
    Mary Scheible 580 on at
    RE: RMS HQ inserting Customers programmatically

    Ramy,

    Thanks!

    I was never programmatically creating customers with duplicate ID's, but when the store added new customers (rarely), it created ones with duplicate ID/HQID's.  Now I understand why.  

    I looked at a Customer insert program I wrote ten years ago and I used that formula - AutoID + 1073741824.  For some reason with this client, I used Max(ID) + 1.  It hasn't been a problem until recently.  I guess we just got lucky.

  • Suggested answer
    raelhefn Profile Picture
    raelhefn on at
    RE: RMS HQ inserting Customers programmatically

    we are applying this formula in RMS project integration since 7 years ago.

  • Verified answer
    raelhefn Profile Picture
    raelhefn on at
    RE: RMS HQ inserting Customers programmatically

    Thanks for fast replay,  but I got confused because of 24 and 25 numbers are very rare. whatever, when you add any new customer to HQ you must add ID = AutoID + 1073741824 also for HQID to get a unique id for both ID and HQID.

    if you are using this formula then no duplication will occur.

  • Mary Scheible Profile Picture
    Mary Scheible 580 on at
    RE: RMS HQ inserting Customers programmatically

    I think that's what I said I did.  So is the database corrupt?  Has anyone else seen this happen?

     

    thanks,

    Mary

  • Suggested answer
    raelhefn Profile Picture
    raelhefn on at
    RE: RMS HQ inserting Customers programmatically

    when customer added to store it takes local ID after that when customer record uploaded to HQ and globalization confirmed from HQ the id changed at HQ and reflected ID to the same and another stores next upload time so no duplication will occurred if you defined from HQ but you must take in consideration the last ID generated from HQ.

    no another tables is required to define customer without accounting information or details.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans