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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Relate Annotation with contract table

(0) ShareShare
ReportReport
Posted on by

Hello everyone!

I was wondering how I can relate attachments in the table AnnotationBase with thier own contracts in teh accountcontractbase.

I mean, the relation does exist beacuse, in the CRM interface, if I open the "notes" part of a contract I can find the notes attached to it. So, someway there's a link between the entities, which I'm not able to figure out.

Could you help me? I don't know it other details are useful. however, I'm avaibile to give you further information if needed.

Thanks a lot,

L

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Relate Annotation with contract table

    No one can help? :(

  • Tim Dutcher Profile Picture
    2,100 on at
    RE: Relate Annotation with contract table

    I think you'll need to rephrase the question. You're seeing that there's a relationship between the annotation and contract entities, but it's not clear what you need to do with that information. Are you trying to write a query to get all notes for a contract?

  • Suggested answer
    Kumar Viju Profile Picture
    1,026 on at
    RE: Relate Annotation with contract table

    Hi,

    Assuming that you are writing SQL Query. You can try the following Join to retrieve notes for all the contracts. The Join is between AnnotationBase=> ObjectId and ContractBase =>ContractId

    SELECT        AnnotationBase.Subject, AnnotationBase.NoteText, ContractBase.ContractNumber

    FROM            AnnotationBase INNER JOIN

                            ContractBase ON AnnotationBase.ObjectId = ContractBase.ContractId

    Note: If you planning to use this query for SSRS reports , Consider using FiltereView instead of Base Table's

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Liquid error: parsing "/globalsearch/?q=co++to+jon" - Nested quantifier +.