Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Programming entity Relation and Contact

Posted on by Microsoft Employee

Hi out there :-)

I am new to crm online and I am trying to program my first plugin.

I get information from a central register (company information and contact information) and I need to update both account and relevant contacts through entity connection.

First, through direct connection to crm (through 3. part ventor) I have access to the underlying entities in crm. I see the connection tables and I can also query rows from this entity. However, when I choose to make a view in crm interface I only find entity connections - I would think they are the same (except the last s) but they dont have same columns .. are there anything I need to do in order to see this entity in crm view (I need this so I can query specific customer thereby narrow search output and better debug my code.

Second, are there any information out there on how to programmatically

1. add a new contact

2 add a relation between this contact and an account 

Specifik which columns are needed in order to make it works.

Thank you in advance.

Danny

*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Programming entity Relation and Contact

    Hi Danny,

    Would it be possible for you to break your requirement into smaller chunks? I couldn't undertstand your view/connection bit but below link will help you build your plugin. There is already a relationship between account & contact which is Primary Contact (primarycontactid) on Account & Company Name (parentcustomerid) in Contact. It is upto you which one you choose based on your requirement.

    docs.microsoft.com/.../gg594416(v=crm.8)

    crmbook.powerobjects.com/.../

    crmbook.powerobjects.com/.../

    Hope this helps.

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