Answered by:
CRM 2011: Mapping Custom Attributes Quotedetail to Salesoderdetail managed Solutions

Question
-
Hello,
I have added some custom attributes at Quotedetail and Salesorderdetail in my solution in MS CRM 2011. Now I want to map the custom attributes between the both entities. There are several descriptions how do implement this. Here is one example:
http://mileyja.blogspot.com/2010/12/map-custom-attributes-from-opportunity.html
I have tried this possible way to implement the mapping. The mapping works without any problems. If I export my solution as managed and import it in a new organization, the mappings still work. But if I delete the managed solution, the mappings are not deleted. Therefore I am not able to convert a quote to a salesorder.
I already tried to replace the link of the description
https://myorgsubdomain.crm.dynamics.com/Tools/SystemCustomization/Relationships/Mappings/mappingList.aspx?mappingId=entitymapidGUID
with
https://myorgsubdomain.crm.dynamics.com/Tools/SystemCustomization/Relationships/Mappings/mappingList.aspx?mappingId=entitymapidGUID&appSolutionId=solutionGUID
The mappings here still work. But I have the same issue.
I have checked the customization file of my managed solution. It contains my correct custom mappings. If generally managed solutions are imported, the custom attributes get the flag ismanaged = true and the custom solutionGUID on database level. If I import my managed solution and have a look at the database table “AttributeMapBase”, I see my custom mappings. But they don’t have the flag ismanaged = true and the solutionGUID is a default system solutionGUID. If I set the flag ismanaged = true and replace the default system solutionGUID with my solutionGUID on my custom mappings at database level, I am able to delete the solution with the custom mappings. In that case I am able to convert a quote to salesorder without any problems.
Does anyone have an idea to resolve the issue?
Kind regards,
Waldemar
Thursday, April 14, 2011 8:42 AM
Answers
-
I am going to guess that it has to do with this being a gray area in terms of customizations. Microsoft had an MSDN page for this methodology for CRM 3.0 and 4.0 but I think there is something about it that doesn't play nice with the solution based model.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Thursday, May 17, 2012 6:51 PM
- Marked as answer by Jamie MileyModerator Monday, April 8, 2013 5:35 PM
Thursday, May 17, 2012 6:51 PMModerator
All replies
-
Did you ever find an answer to this? I am curious. I would like to know and update my blog post. I would hate to think I might be breaking people's org functionality with this customization.
Jamie Miley
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!Friday, April 29, 2011 8:18 PMModerator -
Hello Jamie,
I didn't found an answer. Do you think the issue is a bug? Or are that unsupported customizations?
Kind regards,
Waldemar
Monday, May 2, 2011 6:40 AM -
I am going to guess that it has to do with this being a gray area in terms of customizations. Microsoft had an MSDN page for this methodology for CRM 3.0 and 4.0 but I think there is something about it that doesn't play nice with the solution based model.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Thursday, May 17, 2012 6:51 PM
- Marked as answer by Jamie MileyModerator Monday, April 8, 2013 5:35 PM
Thursday, May 17, 2012 6:51 PMModerator -
Mappings should be transported with the managed solution and they should be reverted back when you delete the managed solution. If the mappings are still there after you delete the solution then it is probably because they were already there in some sort (maybe by other solution) or otherwise there could be a bug that is not cleaning up the mappings when you uninstall.
Gonzalo | gonzaloruizcrm.blogspot.com
Friday, May 18, 2012 12:10 PMModerator