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)

Associate/Disassociate plugin messages

(0) ShareShare
ReportReport
Posted on by 570

Hi What is association/deassociation?

1. Only if we have n:n relationship then only it is association? or 1:N also association?

2. I have a 'contact' entity. It has 1:N relationship with 'case'

So on 'contact' I can have 'case' associated subgrid. Now if I want to trigger a plugin on add of case to the subgrid can I trigger plugin on 'Associate' message on 'contact' entity plugin?

3. Other scenario

I have a 'contact' without associated 'cases'.

I have another 'contact' record with 1 associated 'case'.

Now if I merge the 2nd record with 1st record, the associated case on 2nd contact record will be associated to the 1st record. On this I need to trigger  a plugin. Is 'Associate' triggers in this scenario?

Also in case of deleting this record from subgrid, disassociate works?

Thanks

krishna

*This post is locked for comments

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Associate/Disassociate messages are used only for N-N relationship adding/removal.

    With 1-N relationship you will have to use Update message with filter by relationship lookup.

    For handling of deleting of records from subgrid you will have to handle Delete message.

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