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)

Adding a lookup field to a custom entity adds all the lookup entity components to solution

(0) ShareShare
ReportReport
Posted on by 7

In a DEV environment, I have created new solution with new entities in Dynamics 365 (online). In one of the new entities I added a lookup field to the Contacts entity. This has automatically added all the contact entity components to my solution (all fields, chart, views etc.). I would have expected that only the new relationship would have been added. Is this standard functionality?

I will eventually move this solution from my DEV environment as an unmanaged solution to a TEST environment that has additional managed solutions not in my DEV environment. These managed solutions contain fields on the contacts entity not in my custom solution. Will the additional managed solution fields remain un-impacted by the new solution import?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Adding a lookup field to a custom entity adds all the lookup entity components to solution

    Hi,

    While adding the component, CRM ask you if you wish to add the related components. If you select yes then it will add other components otherwise not. When you import a solution, all the components in the target gets updated with the component you have in your solution. So if you have contact entity then it will override the contact entity as well along with other components. Ypu need to ensure that your solution only contains the compomnents which you want to export/ import.

    Hope this helps.

  • Scott AU Profile Picture
    7 on at
    RE: Adding a lookup field to a custom entity adds all the lookup entity components to solution

    Hi Ravi,

    Thanks for the response. However I’m not manually adding components to the solution (i.e. using the “Add Existing” button in the solution). I’m just adding a new lookup field to a new entity so I can link it to the existing “contact” entity. I didn’t  get the option to determine what components of the “Contact” entity I wanted, CRM automatically included them all.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Adding a lookup field to a custom entity adds all the lookup entity components to solution

    In that case, it won't be adding the full contact entity but just the relationship which is related to that lookup field which is fine. Bottom line is , once you are done with your changes, takle a look at the compoments oin your solution and check if those needs to be remain in the solution or not. Just a best practice.

  • Verified answer
    TNS Profile Picture
    1,197 on at
    RE: Adding a lookup field to a custom entity adds all the lookup entity components to solution

    Hi,

    If i am right you have created a solution and in your custom entity you have created a lookup of contact entity , which will add the contact entity in your solution.

    So if you have not done any customization in contact entity and you don't want to take the contact entity in your solution you can remove the contact entity it will not affect your relationship between custom entity and contact entity(i.e. lookup which you have created in custom entity of contact). If you will not remove contact entity it will change the customization of contact entity also.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans