Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Update Account/Competitor Table in SQL

Posted on by Microsoft Employee

 I am trying to insert multiple rows into table  orbus_competitor_accountBase. (relationship between competitors and accounts was created.

I have the competitor id and accountid that i would like to insert. How do I generate the orbus_competitor_accountid field. See attached

 

*This post is locked for comments

  • Suggested answer
    Mahadeo Matre Profile Picture
    Mahadeo Matre 17,021 on at
    RE: Update Account/Competitor Table in SQL

    Hi Nicole,

    It is not supported to insert record directly into CRM SQL Database.

    but even if you want orbus_competitor_accountid id for SQL, you can use

    insert into orbus_competitor_accountBase (orbus_competitor_accountid, competitorid, accountId) values (new Guid(), competitorid, accountId)

     

    you can New Guid()  to generate orbus_competitor_accountid.

    but again this GUID is not sequential GUID, so it might create some issue in performance. 

    Another option would be you can create one small console application and using CRM SDK you can easily insert multiple  rows / create multiple relationships. 

    Hope this will help.. 

     

     

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