Now it's time to deploy
our web application to Microsoft CRM 2011. In Microsoft CRM 4.0, we used to deploy custom web applications in the ISV folder, but in Microsoft CRM 2011, calling the Microsoft Dynamics CRM 2011 web services from the <crmwebroot>ISV
folder is no longer supported. The ISV folder has officially been deprecated, so any custom code or custom web page deployed in this folder must use only 2007 service endpoints. Let's create a virtual directory for our website under IIS. Perform the following steps to set the virtual directory:
FooditemDetails
Once configuration has been done, the website tree should like the following screenshot:
Now let's access our web application in Microsoft CRM 2011:
Development
solution that we created in Chapter 4, Implementing Business Logic through Plugins.contactWR.js
contact
Script (JavaScript)
function ShowCustomWeb() { var ID=Xrm.Page.data.entity.getId(); var URL="http://localhost/FoodDetails/FooditemDetails.aspx?id="+ID //get iframe var IFRAME=Xrm.Page.getControl("IFRAME_fooddetail").setSrc(URL); }
Now we have our web resource ready and need to attach this web resource to the Customer entity. We also need to add the IFRAME in the Customer entity form. Perform the following steps to customize the Customer entity:
IFRAME_fooddetail
#
18.118.2.225