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)

Entity mapping and plugin

(0) ShareShare
ReportReport
Posted on by 100

Hi All ,

I have following scenario:-

Lets say i have two entity  A  with look up A and entity B with look up B on it.

Entity A form has a subgird of entity B.  When we create entity B record from subgrid , we have a mapping in place which is copies the value of look up A (Entity A) to look up B (Entity B).

Now as per my functionality i am writing my plugin on create of entity B in which i am making the value of look up B to null in some conditions.

Plugin is working fine if we are  creating entity B record  from other than subgrid. But if we are creating entity B record from subgrid , the look up B value is not setting to null. It is setting as per entity mapping

Is there anyway i can make look up B value to null  in my plugin ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Michel Gueli Profile Picture
    982 on at
    RE: Entity mapping and plugin

    Is your plugin being executed? When you add the record through the subgrid, the plugin is only executed after you press save. The mapping is something that is being executed when the forms opens.

  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Entity mapping and plugin

    Hi Vaibhav,

    Please also share the plugin code to see how you are setting it to null. Also I am assuming that you are creating a new record from subgrid and not associating an existing record?

  • Mahendar Pal Profile Picture
    45,095 on at
    RE: Entity mapping and plugin

    Hi Vaibhav,

    Can you share details about your plugin registration steps and share your code here ?? I think you need to run your plugin on post create.

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans