CRM Integration from python RRS feed

  • Question

  • Hi,

    Is there a simple way of inserting data (activities for example) using restful interface from python .


    Monday, March 24, 2014 8:22 AM

All replies

  • I have no knowledge about python, but CRM provides a WebService with several methods.

    So you only need to call the webservice and use the methods provided by the webservice.

    CRM WS Library

    With a quick search i also found this(connection sample).

    Good Luck :)

    Monday, March 24, 2014 9:15 AM
  • The hardest part will probably be to pass the authentication data to CRM, as all calls to the CRM web services have to be authenticated. There are two main approaches:

    1. Call the CRM web services directly, in which case you'll need to reverse-engineer the xml passed for authentication - one approach would be to capture the normal xml passed using a tool like fiddler, and replicate this. However, you need to be sure that this is sufficiently secure, and you may need to update the xml if CRM changes the authentication process
    2. Develop a separate web service in .Net that calls the CRM web service. Call this web service from python, using whatever authentication mechanism you choose. However, you then need to deploy the separate web service somewhere

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Monday, March 24, 2014 3:09 PM
  • Typically the RESTful interface to CRM has been limited to use within the CRM application due to the lack of authentication mechanisms. The good news is that with CRM 2013 there is support for OAuth which will allow use of the REST endpoint for CRM from outside of the actual CRM application. http://blogs.msdn.com/b/crm/archive/2013/12/12/use-oauth-to-authenticate-with-the-crm-service.aspx and for a JS example to see capabilities of the REST endpoint, you can look at http://msdn.microsoft.com/en-us/library/gg334427.aspx
    Wednesday, March 26, 2014 1:42 PM