PHP & Microsoft Dynamics CRM 2013 online

We’ve been using Microsoft Dynamics 2013 at work for a little while now.  One thing that’s been on my to-do list since the beginning has been automating the creation of CRM accounts when our internal hosting system had a new account added.

On and off over the past couple of months, I’ve been trying various pieces of sample code dotted here and there and have not managed to get anything working.  Until now that is.

The sample code came from a surprising source, Microsoft themselves! :)  Hidden away in the Dynamics CRM 2011 SDK is some PHP code.  The code as-is is broken and won’t login to a Dynamics 2013 instance that uses Office 365 live-id’s for authentication.  However, with a little tweaking it’s possible to get it all working!

Grab the tweaked code from here

Edit Main.php and update the Username, Password and organizationServiceURL variables.  When you execute Main.php it should:

  • Authenticate
  • Create a new account
  • Update the account with a new name
  • If enabled, delete the account
[scardus@cp crm]$ php Main.php 

Array
(
 [0] => Array
 (
 [name] => Newer Corporation
 [accountId] => b0d711b3-e629-e411-b376-d89d67631e7c
 )

)
Array
(
 [0] => Array
 (
 [name] => Updated Newer
 [accountId] => b0d711b3-e629-e411-b376-d89d67631e7c
 )

)

 

Something different for 2013 – Windows Phone 8

Last November the Orange contract on my old HTC Desire-Z phone came up for renewal.  I’ve been intrigued by the new Windows Phone system since its original launch but never really though about switching, at least until a friend lent me his old Samsung Omnia 7.

Samsung Omnia 7
Samsung Omnia 7

This phone runs the older Windows Phone 7.5 system, but is good enough to get an idea of what switching to a new Windows Phone would be like.  I really liked the new system and just before Christmas I decided to make the switch.  I’ve now got a nice new shiny HTC 8X on Three and I love it!

HTC 8X
HTC 8X

Here’s a quick list of the Windows Phone apps I’ve found essential so far…

  • 7Pass – A Keepass password database client.  Nicely hooks into Skydrive/Dropbox too.
  • Baconit – A great Reddit client app
  • CrashPlan – Monitor/restore data from Crashplan cloud backups
  • Facebook
  • Flickr
  • NextGen Reader – A great Google Reader client.  Syncs articles for offline reading too.
  • Podcatcher – Probably the best Podcast app in the Windows Phone Store.  Could do with a couple of extra useful features, but it’s updated on a regular basis…
  • Rowi – A fantastic Twitter client, again it’s probably the best available.
  • Token2Shell/WP – An SSH client app.
  • TV Guide+ – There’s no official Sky TV Guide app yet, so this is the next best thing.
  • XBMC Remote – The best XBMC remote control app I’ve seen on any platform.

 

Long time no see!

It’s been a while since I updated my blog and even longer since I last fired up Lightroom to sort my photo collection.  I’ve recently made a start on processing the backlog (over 18 months worth) and the first set are now online:

I’ve also upgraded from Gallery2 to Gallery3, so if you notice anything broken, please let me know.

Sean's occasionally updated blog