LINQPad, CRM 2011, and using Office 365 accounts

I recently discovered that the LINQPad Plugin for Microsoft Dynamics CRM 2011 doesn’t support authenticating using Office 365 credentials.  According to commenter EdWells, you can copy the latest version of crmsvcutil.exe and microsoft.xrm.sdk.dll over the version that ships with the LINQPad plugin as a workaround.  However, this didn’t work for meSad smile.  Have no fear, LINQPad allows you to reference external dlls.  So I just manually ran crmsvcutil.exe, compiled the output into an assembly using Visual Studio, and then referenced the dll + appropriate dependent assemblies.

clip_image002

You add References/Imports via the properties dialog:

clip_image004

MsftIanImportTest.dll is the assembly I put the crmsvcutil.exe code in.

clip_image006

Here’s a basic example to get it all wired up:

clip_image008

UPDATE: I use LINQPad as a way to do things like update multiple records, etc.  I have a tip to improve execution time performance here.

@devkeydet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s