Announcements
Hello,
I have a problem to delete mapping between lead and opportunity. I have removed the dependencies (which means a field on the form) but still I am having an error message that "Cannot create or delete system attribute map having id ----------------------- from leadid to originatingleadid belonging to an entity map with id ------------------------- from lead to opportunity.
I found out that there has been earlier discussion of this topic but that does not offer a solution for me.
https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/376660/cannot-delete-attribute-map
Anyone knows what to do with it?
Hi,
would you please close this thread ?
Hi,
This is CRM intended behavior. Whenever you create a lookup field (or its relationship), there is an automatic mapping between the lookup field and the primary key attribute of the source entity in the relationship. In your case, the mapping is between leadid which is the primary key attribute of source entity Lead and the lookup field originatingleadid . This is the system mapping created for this lookup field. You cannot delete it.
Hi Tuomas,
Allow me to ask you why would you want to delete a system attribute mapping?
Regards
Hi,
It's a known old issue. Unfortunately, You can't delete those mappings. You can clear your data using some JS code. Please refer to the sample code below:
function cancelMappings(executionContext) { var formContext = executionContext.getFormContext(); if (formContext.ui.getFormType() == 1) { var mapping1 = formContext.getAttribute("prefix_mapping1"); if (mapping1.getValue() != null) mapping1.setValue(null); } else return; }
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,186 Super User 2024 Season 2
Martin Dráb 227,996 Super User 2024 Season 2
nmaenpaa 101,148