When working with CRM2011 Java script we found many difference about syntax/methods between CRM2011 and CRM4.0 Please check some of the comparisions we have listed. Please click on the Image below to enlarge view.
Inogic is a hub of like minded professionals who believe in innovativeness and are committed to putting our time and efforts to R & D on Dynamics CRM.We endeavor to share some of our work on this blog by introducing Tips, Tricks and products from our labs.
Saturday, February 19, 2011
Monday, February 14, 2011
Create and Update events for the appointment entity
You will notice that if you register a plugin on the Create or Update event of an appointment in the Parent Pipeline, the plugins do not fire. When you create an appointment in CRM it is set to the status of “Scheduled” implying an appointment has been scheduled.
To trap create and update of Appointment through CRM you need to trap the Book Request and Reschedule request respectively.
When you run the diagnostic tool you would find that the Book Request is fired. It will show up the following xml.
To trap create and update of Appointment through CRM you need to trap the Book Request and Reschedule request respectively.
When you run the diagnostic tool you would find that the Book Request is fired. It will show up the following xml.
Tuesday, February 8, 2011
Workflows vs Dialogs
CRM 2011 introduces the new concept of Dialogs. We have discussed this in detail in our earlier blog that can be found at http://inogic.blogspot.com/2010/11/crm-2011-dialogs-explored.html"
Here we list out the differences between Processes (Workflows) and Dialogs.
Here we list out the differences between Processes (Workflows) and Dialogs.
Thursday, February 3, 2011
Issue with Pulishing Workflow that use Custom Workflow Assembly
While there can be many other reasons for this, recently we came across a situation where a simple workflow assembly designed by us could not be used in a Workflow. If we added the reference to this workflow assembly in the Workflow, it wouldn’t publish. We would receive the following message "An error occured when the workflow was being created. Try to save the worflow again". Refer to the image below.
There was no further information to be found in the event log for this.
Upon further review of the code, it was noticed that the Namespace and Class name was the same.
Upon changing the namespace to something other than TestWorkflow the workflow designer accepted the workflow assembly and published it too.
Just wondering if this were an issue, it should not have allowed us to register the assembly in the first place. It would have been a better indicator of something being wrong with the class declarations.
For anyone else who face the same problem… it might help to check the class name.
There was no further information to be found in the event log for this.
Upon further review of the code, it was noticed that the Namespace and Class name was the same.
Upon changing the namespace to something other than TestWorkflow the workflow designer accepted the workflow assembly and published it too.
Just wondering if this were an issue, it should not have allowed us to register the assembly in the first place. It would have been a better indicator of something being wrong with the class declarations.
For anyone else who face the same problem… it might help to check the class name.
Monday, January 17, 2011
Use Tracing in CRM 2011 Plugins
CRM SDK provides way for you to include the debug details about your plug-in in case you need to trace the plug-in execution. For this you will have to initialize the “ITracingService”. The service provides way to trace the details and display it whenever plug-in fails and throws an exception.
//Initialize the service
ITracingService tracingService = (ITracingService)serviceProvider.GetService(typeof(ITracingService));
Once initialized, you just need to add the logical and meaningful details as per your logic using below code,
tracingService.Trace(yourMessage);
Shown below is the example of message shown to the user when plug-in fails and throws exception.
Hope this helps you how to use Tracing in CRM 2011 plugins!
//Initialize the service
ITracingService tracingService = (ITracingService)serviceProvider.GetService(typeof(ITracingService));
Once initialized, you just need to add the logical and meaningful details as per your logic using below code,
tracingService.Trace(yourMessage);
Shown below is the example of message shown to the user when plug-in fails and throws exception.
Hope this helps you how to use Tracing in CRM 2011 plugins!
Subscribe to:
Posts (Atom)