web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

AnnotationBase as it relates to the Company/Client (AccountBase) table

(0) ShareShare
ReportReport
Posted on by 290

Good morning, I am trying to understand how the AnnotationBase file knows that the note created is for a specific company/client in the AccountBase table.

Thannks in advance

*This post is locked for comments

I have the same question (0)
  • Aileen Gusni Profile Picture
    44,524 on at

    14102306258 uob penghapusan iuran sampai 30 nov

    Hi  bholmstrom,

    You can use objectid and objecttypecode attributes in the annotation table

    You dont need to query against table you can query against the annotation view or filteredannotation filtered view

    You can query using

    Select * from annotation

    -- or filteredannotation

    -- or annotationbase

    Where objecttypecode = 1

    -- 1 is the indicator that the notes are relates to an Account, Account object type code is 1

    And you can use objectid to get notes from specific account

    Where objectid ='guid here'

    Or you can also query:

    Select * from annotation

    Where objectid in

    (

     Select accountid from account

    )

    You can use accountbase as well

    Hope this can help you!

  • Verified answer
    bholmstrom Profile Picture
    290 on at

    This is perfect thank you. I wish they would give us a little roadmap on how the tables are linking. I was expecting to see 'accountid' not objectid. Now that you point out the other possiblites it makes sense though.

  • Community Member Profile Picture
    on at

    You can use the Metadata Diagram Generator to build entity relationship diagrams. read more here:

    msdn.microsoft.com/.../jj602918.aspx

  • Aileen Gusni Profile Picture
    44,524 on at

    Hi bholmstrom,

    Great.

    You can also see tool suggested by Adam.

    If you think the people answers are helpful kindly to mark it, so that other people can know it. 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans