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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Why associate message is called when I create a record from related tab in a form even if it is a 1:N relationship?

(0) ShareShare
ReportReport
Posted on by 75

Just like I wrote in the subject. Let's say I have a table called "Scaffold". This table has a relationship 1:N with another table called "Position". If I go in the Scaffold's form, navigate through "related" link and click in "new", I can create a new record in the Position's table. My problem is that when I do this, the CRM call the "associate" message, calling both create and update message togheter. So if I have different control in my plugin between create and update, I have many problem when update message is called in creation.
I read on many forum that associate message is called in an N:N relationship, so I would like to understand if it is a common behavior that it is called also in an 1:N relationship. If so, who I can avoid to call the update message on create?
I found this problem in any new record created through related tab. No problem at all if I create new record in any other way, even if I valorize lookup

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Federico Pelliccia,

    According to your description, you can hide new button by Ribbon Workbench to avoid this behavior.

    1.Add your Position entity to your solution and load it by Ribbon Workbench.

    2.Hide add new button and publish your solution.

    pastedimage1631078123981v1.png

    Result:

    The new button would be hidden when you navigate  to related to create it.

    pastedimage1631078273778v2.png

  • Federico Pelliccia Profile Picture
    75 on at

    Thank you for your reply. I would like avoiding hide "New" button from related grid, because often it is usefull for support entity that has just a short role.

    For example, like in this case, I would be able to create the position record, related with the scaffold, just from its related item, without put on the sitemap the "position" button.

    Also, I am not understanding why the associate message is called if I create a new record from related side and not, for example, if I just create from zero the same record with same lookup valorized. Sdk says that associate message is called when there is a N:N relationship, but in my case it is a Scaffold 1 : N Position

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 107 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 94

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans