Presentation is loading. Please wait.

Presentation is loading. Please wait.

For Microsoft Dynamics CRM Partners Taking Advantage of Web Resources Presented By: Sebastian Waksmundzki AlfaPeople Prague April 3 - 6, 2011.

Similar presentations


Presentation on theme: "For Microsoft Dynamics CRM Partners Taking Advantage of Web Resources Presented By: Sebastian Waksmundzki AlfaPeople Prague April 3 - 6, 2011."— Presentation transcript:

1 For Microsoft Dynamics CRM Partners Taking Advantage of Web Resources Presented By: Sebastian Waksmundzki AlfaPeople Prague April 3 - 6, 2011

2 For Microsoft Dynamics CRM Partners WhoAmiRequest Senior Dynamics Architect @ AlfaPeople –10 Years Experience –Still love technology –CRM, SharePoint, ERP(s) Social –Blog www.mindthecloud.net –Twitter @qmiswax

3 For Microsoft Dynamics CRM Partners Agenda Web Resources –Capabilities –Limitations Real Life –Virtual Paths –Demo –Tools Web Resources and Solutions Q&A

4 For Microsoft Dynamics CRM Partners

5 What are Web Resources Long long time ago (v4) there was only chaos… Now: Virtual files –stored in the DB –unique URL address On-premise and Online –https://MyOrganization.crm.dynamics.com/WebResources/ –http://myServer/MyOrganization/WebResources/

6 For Microsoft Dynamics CRM Partners Web Resource Types FileFile extensionsType Web Page (HTML).htm,.html1 Style Sheet (CSS).css2 Script (JScript).js3 Data (XML).xml4 Image (PNG).png5 Image (JPG).jpg6 Image (GIF).gif7 Silverlight (XAP).xap8 StyleSheet (XSL).xsl,.xslt9 Image (ICO).ico10

7 For Microsoft Dynamics CRM Partners Capabilities Used to extend the Microsoft Dynamics CRM Web application Reusability of code (JS Libraries) Familiar technologies for developers Pack and go deployment model Accessible via SDK Available offline

8 For Microsoft Dynamics CRM Partners Limitations Only client side Only for licensed Microsoft Dynamics CRM users (CRM security context) Organization.MaxUploadFileSize property One missing type (.aspx) to execute code on the server

9 For Microsoft Dynamics CRM Partners JavaScript Library JScript libraries are reusable –Up to 50 scripts per entity form –Up to 50 functions as event handlers Execution Context –to determine Depth, Event Source, shared variables

10 For Microsoft Dynamics CRM Partners Common Functions function changeElementBackground(elementName, colour) { $(elementName).css("backgroundColor", colour); } function highlightControlText(controlName, colour) { $('#' + controlName).css("color", colour); } function highlightBackground(controlName, colour) { $('#' + controlName).css("backgroundColor", colour); }

11 For Microsoft Dynamics CRM Partners Demo of JS library

12 For Microsoft Dynamics CRM Partners Execution Context Passed to Jscript function as first parameter Tells you about object generated the event

13 For Microsoft Dynamics CRM Partners Execution context function DoSomething(context) { var oField = context.getEventSource().getValue(); if (typeof(oField) != "undefined" && oField != null) { } context.getEventSource().setValue(“whatever”); }

14 For Microsoft Dynamics CRM Partners Look and feel with data Look and feel: HTML pages (css)/Silverlight Data: REST –Html page + jquery –Silverlight

15 For Microsoft Dynamics CRM Partners REST Microsoft Dynamics CRM Implementation of REST (Odata) OData Entity Data Model (EDM) [Your Organization Root URL]/xrmservices/2011/organizationdata.svc [Your Organization Root URL]/xrmservices/2011/organizationdata.svc/$metadata

16 For Microsoft Dynamics CRM Partners REST () OData Query Designer http://crm2011odatatool.codeplex.com CrmRestKit (Dynamics CRM 2011) http://crmrestkit.codeplex.com/

17 For Microsoft Dynamics CRM Partners CrmRestKit // CREATE var contact = CrmRestKit.Create('Contact', { FirstName: ‘Seb', LastName: ‘W' }); // RETRIEVE CrmRestKit.Retrieve('Contact', contact.ContactId, ['ContactId', 'ParentCustomerId'], function (contact) { var contactId = contact.ContactId; //... });

18 For Microsoft Dynamics CRM Partners Passing Parameters html ParameterNameDescription typenameEntity NameThe name of the entity typeEntity Type Code An integer that uniquely identifies the entity in a specific organization. idObject GUID The GUID that represents a record. orgnameOrganization Name The unique name of the organization. userlcidUser Language Code The language code identifier being used by the current user. orglcid Organization Language Code The language code identifier that represents the base language for the organization. dataOptional Data Parameter An optional value that may be passed.

19 For Microsoft Dynamics CRM Partners Virtual/Relative paths WebResources can be developed and tested outside of Microsoft Dynamics CRM 2011 and then imported Virtual folder structure

20 For Microsoft Dynamics CRM Partners Demo (Geo Locate)

21 For Microsoft Dynamics CRM Partners Object Model

22 For Microsoft Dynamics CRM Partners Images JPG, PNG, GIF Ribbon $webresource Directive Custom entity icons Background for html Custom form features

23 For Microsoft Dynamics CRM Partners Data (XML) Save and access data Cache data that you want to use in your solution This is not another DB

24 For Microsoft Dynamics CRM Partners Tools Web Resource Utility Minify (PowerShell) CRM 2011 Dev Toolkit –see Marco Amoedo and his session

25 For Microsoft Dynamics CRM Partners Solution Management

26 For Microsoft Dynamics CRM Partners Demo (Tools)

27 For Microsoft Dynamics CRM Partners Sebastian Waksmundzki AlfaPeople swa@alfapeople.com Thank You for Attending extreme 2011! Please remember to fill out your session evaluation form.


Download ppt "For Microsoft Dynamics CRM Partners Taking Advantage of Web Resources Presented By: Sebastian Waksmundzki AlfaPeople Prague April 3 - 6, 2011."

Similar presentations


Ads by Google