Tag: C#

Development

Actions, input parameters and “Object reference not set to an instance of an object” exception

While playing with Actions, I wrote a simple .Net code that invoked the execution of an Action: slick_CustomActionsTestRequest request = new slick_CustomActionsTestRequest() { BoolInArgument = true, DateTimeInArgument = DateTime.Now, DecimalInArgument = decimal.Zero }; slick_CustomActionsTestResponse response = service.Execute(request) as slick_CustomActionsTestResponse; During testing, I got a really weird and unclear error – “Object reference not set to …

Development, Howto

Microsoft Dynamics CRM 2013: Actions walkthrough for .Net and JavaScript developers

I believe that almost every developer for Dynamics CRM has faced a scenario where he/she had to invoke some complex logic on a server side, pass parameters and receive a response back. Before CRM 2013, we used workarounds similar to this one. When Dynamics CRM 2013 was released, we got a solution that would not …

Development

Update of Latitude/Longitude fields using BingMaps services through SSIS Integration Toolkit

In the current project I’m working on, I have to update Latitude/Longitude fields of all account records based on their addresses. I’ve done similar tasks several times before, but this time I decided to create an SSIS package that could be reused in future projects. So in this article I will share with my results …

Development

Customer Portal – switching authentication from LiveId to Forms

I got a requirement from one of my clients to create a customer portal. It was my first experience with portals, so I decided not to build a custom website but to install and configure Customer Portal. I won’t explain how to install and configure this solution – it is well described. Once it was …

Development

MS CRM 2011: How to cancel/postpone Workfow Instance using C#

Today I had a task to cancel about 25k instances of the same workflow. Of course it was possible to create Advanced Find View and go through 100 pages cancelling all workflows on the page. But I’m too lazy and I know C# to do that manually.

Development

MS CRM 2011: CallerOrigin in plugins

Yesterday well-known MVP Tanguy Touzard, author of amazing tools for Dynamics CRM 4.0/2011 asked about CallerOrigin property in plugins for Dynamics CRM 2011. This property worked for CRM 4.0 and returned the source of plugin invocation (Application, AsyncService or WebService). I and Gayan suggested to use HttpContext class from System.Web namespace to check source. Today …

CRM Extensions

MS CRM 2011: Import of marketing list members using standard import with small extensions

Unfortunately at the moment it is impossible to import Marketing Lists Members to CRM with out-of-box import. My friend, former MVP and employee of Microsoft Artem Grunin provided good approach how to eliminate this problem with small customizations and plugin.