Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

crm2013 - Onsave error on appointment

$
0
0

Hello,

We upgraded crm2011 to crm2013 and are using an on-premise system.

currently, we can not save new Appointments. You can see the error below.

On customizations.xml of appointment, there is an internalhandlers tag. When ı comment out this tag and import the solution again, it can be saved but there is no action on screen. I mean, save button looks like there is no action but ı can find the saved appointment record by using advanced find.

After doing this, ı finally  compare  content of Appointment_main_system_library.js  for upgraded CRM2013 and a fresh CRM 2013 setup (not an upgrade).

  • upgraded CRM2013 has "Type.registerNamespace("Mscrm");Mscrm.Form_onload=function(){!IsNull(Mscrm.RecurrenceUtil)&&Mscrm.RecurrenceUtil.addCustomGridRefreshHandler();var wrapper=Xrm.Page.data.entity.attributes.get("seriesid");if(wrapper){seriesId=wrapper.getValue();APPOINTMENT_SERIES_ID=seriesId;try{refreshRibbon()}catch(e){}}!IsNull(Mscrm.EntityPageHandlerFactory)&&Mscrm.EntityPageHandlerFactory.create();!IsNull(Mscrm.AppointmentNotifications)&&Mscrm.AppointmentNotifications.registerExchangeSyncNotifications();initDates()};Mscrm.isalldayevent_onchange=function(){Xrm.Page.data.entity.attributes.get("scheduledstart").setSubmitMode("always");Xrm.Page.data.entity.attributes.get("scheduledend").setSubmitMode("always")}"
  • a fresh CRM2013 has "Type.registerNamespace("Mscrm");Mscrm.Form_onload=function(){!IsNull(Mscrm.RecurrenceUtil)&&Mscrm.RecurrenceUtil.addCustomGridRefreshHandler();var wrapper=Xrm.Page.data.entity.attributes.get("seriesid");if(wrapper){seriesId=wrapper.getValue();APPOINTMENT_SERIES_ID=seriesId;try{refreshRibbon()}catch(e){}}!IsNull(Mscrm.EntityPageHandlerFactory)&&Mscrm.EntityPageHandlerFactory.create();!IsNull(Mscrm.AppointmentNotifications)&&Mscrm.AppointmentNotifications.registerExchangeSyncNotifications();initDates()};Mscrm.isalldayevent_onchange=function(){Xrm.Page.data.entity.attributes.get("scheduledstart").setSubmitMode("always");Xrm.Page.data.entity.attributes.get("scheduledend").setSubmitMode("always")};Mscrm.Form_onsave=function(context){}"

The difference is the "Mscrm.Form_onsave=function(context){}".. But after adding this code to web resource, it didnt work...

Any ideas?

Thanks

Işıl





Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>