Microsoft has a powerful way to manage automatic attribute mappings from entities created from other entities. Typically we see this in the QOI process where an Opportunity is created, and then a Quote, Order or Invoice can be created from the Opportunity and much of the information is automatically copied from the Opportunity to that Quote, Order or Invoice.
If you open up your Opportunity from Customize Entities and look at 1:N Relationships, you can see the opportunity_quotes relationship.
If you double click on that you will see mappings. This shows you the names of each source opportunity attribute that is “Mapped” to a target quote attribute when a Quote is created from an opportunity.
This is very useful if you want to add custom fields and have those automatically propagated too or if you want to disable any default mappings.
So what about mapping the opportunityproduct? or quotedetail, salesorderdetail, and invoicedetail for that matter?
Hidden Entity Mapping
Step 1. You need the EntityMapId for the relationship that you want to map.
You can manually scan the EntityMapBase table matching against the SourceEntityName and TargetEntityName.
Or you can write a select like the one below to get a nice list of Guids to copy and paste into a temporary form.
Step 2. Take the following URL and replace your server name and the EntityMapId of your choice to gain access to the rest of the mappingList editors.