I have tried this method and CRM still prevents the data model from being returned when using MVC and Knockout.js. When I make a JSON call it returns an empty object, however if I put in it's own web site it works great and returns that data expected.
Any ideas why MVC would do this?
Thanks Much ML
Upon further study,
After much work and continued research we found the culprit to our issue. There is an ISAPI filter in the CRM web site in our environments called crm.default.addon this filter adds a "/default.aspx" to the end of any url that doesn't have an extension at the end.
Thus when we would call to a service the parameter to lookup would always have a /default.aspx which is never found and returns an empty data object.
Two way's around that I've tested and are equally effective(but I'm sure the are others):1) remove the ISAPI filter - removing the filter allows MVC url based method calls work without any issues.2) filter off the "/default.aspx" with the .split('/') method and get the parameter that should be looked up.
Method one was only cursorily tested, so other issue may arise from removal of the filter in CRM, I can't say for sure.
Method 2 is what we're using in production until Microsoft has weighed in on removing the filter and it as been thoroughly tested by our QA.
Hope this helps others ML
The complementary paper includes over 12 years of research, recent survey results, and CRM turnaround success stories.
This 60-second assessment is designed to evaluate your organization's collaboration readiness.
Learn how you rank compared to organizations typically in years 1 to 5 of implementation - and which areas to focus on to improve.
This is a sandbox solution which can be activated per site collection to allow you to easily collect feedback from users into a custom Feedback list.
Whether you are upgrading to SharePoint Online, 2010, 2013 or the latest 2016, this checklist contains everything you need to know for a successful transition.