locked
How to dynamically assign case to a user using Plugin RRS feed

  • Question

  • Hello.

    I would like to know how to dynamically hard assign a case to a user using Plugin. Sorry, I am new guy. just explain it briefly.

    I understand an idea that there is a custom workflow will be fired after you manually create a rcord of case in CRM 4.0 successfully. the workflow will invoke plugin. and the plugin feature is that dynamically assign the current owner to a fixed crm user.

    I like to know how to writen the code correctly and how to use the workflow invoke the plugin. Thankssss!!!

    Thursday, January 8, 2009 3:33 PM

Answers

  • Hi,

     

    You are messing a few things together. Workflows do not execute plugins, but a custom workflow activity which also can be a .net library. They share a common Event Framework, but they are generally separate things (e.g. workflows can be set up to run asynchronously).

    Anyway, your need can be accomplished without any code and plugin. Do you need a plugin for any reason? If you only need to dynamically assign a newly created case to a specific user, you can create a workflow that will run on the case creation and will only perform one operation "Assign record" and then you choose who should be the owner.

    However, if you really need to use plugins, not workflows for any reason, please take a look at the samples in the SDK: http://msdn.microsoft.com/pl-pl/library/bb955365(en-us).aspx (how to create a plugin), http://msdn.microsoft.com/en-us/library/bb959372.aspx (how to assign a record to a user by using the AssignRequest request).

     

    Let us know whether that helps or if you need further assistance.

     

    Regards,

    Kuba Skalbania

     

    Thursday, January 8, 2009 7:44 PM