one day left of free Sharepoint 2010 training

There is one day left of the free Sharepoint training

All you have to do is register and the training is free

http://blogs.msdn.com/b/ukisvdev/archive/2011/02/10/free-three-days-of-online-sharepoint-2010-developer-training-march-14th-to-16th.aspx

it looks to have some interesting topics, day 3 has some information about web services and workflows

Day 3 (Live Meeting 3 hours) 1:30 – 4:30
•         Client Object Model: The Client OM can be accessed via web services, via a client (JavaScript) API, and via REST
•         Accessing External Data: Business Connectivity Services (BCS) enables integration with back end systems
•         Workflow: A powerful mechanism to create functionality using Windows Workflow Foundation

Advertisement

CRM 2011 Tool – Jscript Soap Request Formatter

This blog seems to be the head of the Jamie Miley appreciation club this week and marvelous Miley has done it again today by releasing the CRM 2011 Jscript Soap Request Formatter.

Firstly you can read about it on his blog from his latest blog post here.  You can also download the tool at codeplex here.  I have to say I am always very grateful when someone from the CRM community creates a project on codeplex, these kind souls have saved me, hours/days with their excellent tools.

The reason the marvelous Miley has featured on my blog so much this week is because he has been devoting his time to Javascript, which is one of those areas I am yet to master, so all help is welcomed.

The blog entry features a link to a great article from the updated SDK CRM 2011 – Walkthrough: use the SOAP endpoint with Javascript.  This is a very useful article because it shows you how to capture the soap messages from calls to the iOrganizationservice by creating a soap logger.

The CRM 2011 Jscript Soap Request Formatter basically takes the soap message logged out and then creates some Javascript for you.  Nice, this could save you a lot of time creating the  javascript manually, especially with the += when creating a string which contains a soap message.

I was also interested to see an example of doing a soap call.

firstly calling the XRMservice

 var OrgServicePath = "/XRMServices/2011/Organization.svc/web";
and then the full call using the execute method of the CRM web service.

req.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Execute");

 

Good work the Marvelous Miley

VOTE NOW – 2011 TOP 100 MOST INFLUENTIAL MICROSOFT DYNAMICS PEOPLE

I subscribe to the RSS feed of Lion Tribes blog and today I thought it was quite amusing that he was urging people to vote for him in Dynamics world most influential Microsoft Dynamics person 2011.  Then again there isn’t anything wrong with a bit of self publicity and he does have a pretty good blog.

if you want to cast your vote, get over here and cast your vote, they have narrowed it down to 260.

http://www.dynamicsworld.co.uk/2011Voting.php

You have to say with CRM 2011 being released recently then you would probably say Kirill Tatarinov will probably come out on top.

CRM 4 – Debugging Javascript

I was trying to debug some javascript today in CRM 4.  I initially tried to use the brilliant F12 internet explorer (8 plus) web development tool.

A wierd thing happens in CRM 4 compared to CRM 2011.  In CRM 2011 because it is a web resource, it’s that file which is loaded.  This makes it easy to look at the list of scripts and then pick the one you want to debug.

but with CRM 4 it is different because it is a file called FormScript.js with lots of variables after it’s name.  The other frustrating thing is it doesn’t have your onLoad script in it straight away, it adds it later on.  This means you can’t put breakpoints on your code because it isn’t loaded yet.

The thing that really annoyed me was it kept creating a new Javascript file everytime I ran it.  Then once it was loaded and you put a breakpoint in the js file it created a new one.

In the end I did manage to put a breakpoint on the original FormScript.js and then one hit the breakpoint it had loaded my script and I could place some breakpoints in my code.  The only problem is I’m not totally sure I could do it again.

I also tried the debugger method.  This is basically adding the word debugger to your javascript code and then when it hits this, it asks you where you want to debug the code.  You can then choose Visual Studio and step through your code.

The only problem I had with this method is I couldn’t add breakpoints and the javascript I was trying to debug was creating functions and callbacks.  This is why it’s good to do it Internet explorer debugger because you can put breakpoints anywhere.

You should check out this blog post – Tips for productive Javascript in CRM dynamics 4.  It has a few good tips, the tip below shows you the settings you need to debug the javascript in visual studio, there is an internet explorer setting you need to adjust

 

Use the debugger statement in your code if you want to walk through code.  You are able to leverage Visual Studio to analyze variable values as you execute your code.  Very useful!

First, within Internet Explorer, uncheck “Disable script debugging  (Internet Explorer)” and “Disable script debugger (Other)”

Next, add following code before any code you would like to debug.

debugger;