February, 2011

  • Girish Raja's Blog

    Connecting to CRM Online 2011 Web Services using SOAP Requests Only


    Updated 29th August 2012: The sample has been modified to support both the Microsoft online services environment (Office 365 style) authentication and the Microsoft account (formerly Windows Live ID) authentication. Once again many thanks to Ryan Lo from Marketo for providing the updated sample.

    Recently I have had a number of developers asking me about using CRM Online web services from within non.NET applications such as PHP or Flash web apps. Given my heads down approach on .NET these days I ended up putting together a pretty basic sample in C# that shows how to access CRM Online web services using SOAP messages only. This code sample retrieves data from CRM Online using pure SOAP calls only and no additional assemblies to illustrate the underlying SOAP interactions. Couple of ISV partners were able to successfully use this sample and port it over to PHP & Adobe ActionScript, so this stuff apparently works!

    The soap messages were based on Fiddler (http://www.fiddler2.com) traffic capture of sample code from the CRM 2011 SDK (http://msdn.microsoft.com/en-us/library/gg309408.aspx).

    You can download the sample code here:

    At a high-level below is what the code does:

    1. Pass in the device credentials and get a PUID. The device credentials is a randomly generated string that satisfies Live ID schema. You can generate one from this tool: Create CRM 2011 Beta Device
      1. POST https://login.live.com/ppsecure/DeviceAddCredential.srf
      2. Get the PUID from response
    2. Pass the device credentials
      1. POST https://login.live.com/****STS.srf (dynamically obtained) 
      2. Get the device CiperData (BinaryDAToken)
    3. Pass the WLID username, password and device BinaryDAToken
      1. POST https://login.live.com/***STS.srf (dynamically obtained)
      2. Get the security tokens (2 CipherValues) & X509SubjectKeyIdentifier
    4. Do CRUD with the web service by passing X509SubjectKeyIdentifier, 2 CipherValues and the SOAP request (with data payload)
      1. POST https://yourorganization.api.crm.dynamics.com/XRMServices/2011/Organization.svc
      2. Get the result from the CRUD response and parse XML to get the data you need


    BTW the new MSDN code gallery (beta) is pretty awesome with the ability to browse through the source code without downloading and extracting the zip file.
    Pretty nice, huh!


  • Girish Raja's Blog

    MSDN Webcast: Integrating SharePoint 2010 and CRM 2011 Online


    Updated: 23rd February 2011 - This webcast was recorded and can be viewed on-demand here: https://www.livemeeting.com/cc/mseventsbmo/view?id=1032473318&role=attend&pw=5149E819. You can view the slides used in this webcast using the PPT Web App at the bottom of this post. Also please note that the BCS connector shown in the webcast is not supported by the CRM support team.

    On February 22nd , I’ll be presenting an MSDN webcast titled Integrating SharePoint 2010 and CRM 2011 Online. It is a 300-level webcast for  programmers, developers & architects , so I’ll delve deeper into code and architecture. The topic of integrating SharePoint & CRM is something I’ve been presenting for more than an year but every time I deliver this, there is definitely new content available for me to present. This time is no exception as you’ll get a preview of the BCS connector we’re working on and also I’m excited to show a couple more interesting demos.

    You can signup for the webcast here: https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032473318&Culture=en-US
    Date & Time: Tuesday, February 22nd, 2011 9:00 AM Pacific Time (US & Canada)

    Below is the abstract for the webcast. Let me know (by leaving a comment below) if you’d like me to cover anything specific that might be of interest to you.

    Microsoft SharePoint and Microsoft Dynamics CRM is a match made in heaven. With Microsoft Dynamics CRM 2011, Microsoft provides out-of-box document integration with Microsoft SharePoint 2010, but customers are increasingly looking for ways to integrate these two technologies further. In this developer-focused webcast, we look at how you can bring Microsoft Dynamics CRM data to SharePoint using web parts, Microsoft Business Connectivity Services (BCS), web services, and more. We also demonstrate the BCS adapter for Microsoft Dynamics CRM and an end-to-end online application connecting Microsoft SharePoint Online, Microsoft Dynamics CRM Online, Microsoft Silverlight, and Windows Azure. If you want to understand how to integrate SharePoint and Microsoft Dynamics CRM, then you don't want to miss this webcast.

    You can view the slides used in this webcast using the PPT Web App below:

  • Girish Raja's Blog

    Dynamics CRM 2011 Developer Training Kit



    I’m very excited to announce the availability of Dynamics CRM 2011 Developer Training Kit. It’s a great collection of materials that allows .NET developers to learn the development features of Dynamics CRM and helps them build applications using Microsoft Dynamics CRM 2011 and CRM Online.

    Download the training kit here: Dynamics CRM 2011 Developer Training Kit.

    The training kit includes various resources such as

    clip_image001[14] Presentations - Presentation decks in PowerPoint (.pptx) format that you can use to learn the concepts.
    clip_image001[15] Videos - Video recordings of the presentation along with demos delivered by expert trainers.
    clip_image001[16] Hands-on Labs - Hands-on labs with detailed instructions and source code that will walk you through the various development features.

    No prior Dynamics CRM experience is required to go through this training kit. Familiarity with the .NET Framework, Microsoft Visual C#, Microsoft JScript, Microsoft SQL Server and general Web development is recommended.

    imageWhat topics does this kit cover?

    • Introduction
    • Solutions
    • User Experience Extensibility
    • Visualizations and Dashboards
    • WCF Web Services
    • LINQ and oData
    • Plugins
    • Processes
    • Client Programming
    • Silverlight
    • SharePoint & CRM
    • Windows Azure & CRM
    • Upgrading from CRM 4.0 to CRM 2011
    • Dynamics Marketplace

    What’s Next?

    1. The hands on labs will be upgraded to RTM build as soon as CRM 2011 RTM is made generally available.
    2. The training kit will be published as a training course on MSDN for easy consumption.
    3. We’re looking to add new modules on accessing CRM Online from Java & PHP for non-.NET devs.


    We look forward to seeing your apps on the Dynamics Marketplace.

Page 1 of 1 (3 items)