Tuesday 25 November 2008

Custom Reporting in CRM 4.0

So after my relatively successful installation of the Event Management Accelerator, I have yet to test out how it actually works! But there is a reason for this... I have been thrust head first into writing Custom Reports for a particular client of ours... not one of my favorite subjects, but one that surprisingly I am finding quite enjoyable!

I have been playing around with Visual Studio and it is very good at making the reporting minefield relatively trouble free... and if I ever do run into any issues there is always the trusty geniuses on http://forums.microsoft.com/Dynamics/default.aspx?siteid=27 to help you out!

My major triumph today, however was a small piece of SQL code that enabled me to display the months to close a particular opportunity on this said report, now it may not seem much, but for me, it was like almost reaching the top of Everest!

anyways here is the code for months

=sum(DateDiff(DateInterval.Day, Fields!createdon.Value, Fields!actualclosedate.Value)/28)

However, the pièce de résistance has to be the average time that it takes to close opportunities and this code took a little while to get my head around the logic... but here it is...

=AVG(DateDiff(DateInterval.Day, Fields!createdon.Value, Fields!actualclosedate.Value)/28)

As you can probably tell, I'm rather pleased with myself so I think it is now time to go for coffee!

Wednesday 19 November 2008

Installing The Event Management Accelerator in a Hosted CRM environment

Hi Guys

I have been having a play around with the newly released accelerator on our hosted CRM platform, and I have to say so far so good.

I thought I would just drop down a few thoughts about the install process (which is very easy) and a few shots of what it should look like.

The very first thing that I found was that after the download had extracted itself, when I went to upload the customisations, CRM returned the error that the file path was too long, so my first tip is to extract the files to your own folder path rather than the default path and thus saving you a few minutes!

Once all customisations had been uploaded, it was then turn to publish the workflows, which as the instructions state cannot be published until you edit the three workflows that send emails, so you have to go in and change the sender from "Microsoft Web User" to a user within your organisation.

Once these are all published you should see within your Campaigns the added links on the left hand navigation.









The final part of the install is to add the eventmanagement plugin, by running the msa_eventmanagement.install.exe on your CRM server. You must remeber to state which organisation you are adding the plugin to (must be the same as the org you uploaded the customisations to)



Once this has successfully run, you will need to go into customisations and you will see the entity event management configuration, edit this entity and set it to show up in the settings area of CRM.



Finally go the settings area and you will see that the entity now appears as an admin area. Go into this area and you will need to set the first configuration settings


The settings should be as follows:


The Event status code values need to be read from the Status Code attribute of the campaign entity. We enter these manually just in case the import was not able to use the default values for Status Code. The following status codes should be used:
Event is Open for registration = 2 (Launched)
Event is Sold Out = 200001 (Sold Out)
Event is Waitlisting registrations = 200000 (Waitlisting)
These codes are used so that the portal can adjust the display of specific events and in the case of sold out events ensure that the web customer can’t register for the event.

The following Campaign Response Response Codes are used:
Registered = 200000 (Registered)
Registration Canceled = 200001 (Registration Canceled)
Waitlist = 200002 (Place this customer on the waitlist)

Additionally, we need to store the reference number for the Campaign Response Channel type which by default is set to 200000 for the web channel.


Once that is saved you are ready to start using Event Management!

Welcome

Welcome, one and all to my very first blog page, ever!

Over the next few weeks, months and years you will find helpful tips and tricks to help you get more out of Microsoft CRM and hopefully make your lives easier!

I have read many many helpful blogs while trawling for the answers to the many, many questions I have had about CRM and I will do my best to put all of the answers here and hopefully over time, this blog will become one of the first that you look for when you need help!

Please do comment, both good and bad are welcome (hopefully more good than bad ;P) and as I say I hope that this blog becomes an invaluable source of info!

Thanks

Al