title: Connecting to Dynamics CRM database hosted in the "cloud" on Office 365
body: <p>The company I work for uses Microsoft Dynamics CRM to track our clients and is hosted through Office 365. It has the most up-to-date client information. </p>
  
  <p>Up until now we have been maintaining a second database with duplicate data that is used for the internal database... as you might have guessed it doesn't get updated with the latest information, so we run into issues where a query is run and pulls out of date client information.</p>
  
  <p>Instead of queries using the internal database's client list, I want to pull the data from the CRM database. Has anyone done this before and have experience with it? Not finding much on it. The URL is something like <code>https://businessname.crm.dynamics.com</code>. Oh and I am using Django.</p>