locked
How to detect SDK Message Step on server side RRS feed

  • Question

  • Hi Devs,

    I have a situation where I have a create and update steps on a particular "CustomEntity" and a step for 'Create of any Entity' both. I want to detect which step the Plugin code is called by on server side. Is there any way to detect this?

    Thanks.


    blog: <a href="http://technologynotesforyou.wordpress.com">http://technologynotesforyou.wordpress.com</a> | skype: ali.net.pk


    • Edited by Khadim Ali Monday, July 27, 2015 9:16 AM
    Monday, July 27, 2015 9:13 AM

Answers

All replies

  • Hi Ali,

    You could pass a configuration string (secured or unsecured) during step registration, which you can check in your plugin, so that you can identify your plugin step with the help of the parameter.

    Thanks


    Microsoft Dynamics CRM Training |Our Blog | Follow US | Our Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    • Proposed as answer by HIMBAPModerator Tuesday, July 28, 2015 7:47 AM
    • Marked as answer by Khadim Ali Wednesday, July 29, 2015 8:56 AM
    Tuesday, July 28, 2015 7:47 AM
    Moderator
  • Another way that I found is to isolate the .NET code for 'Create of any Entity' and 'Update of any Entity' SDK steps into another plugin class. That way still the plugin will be fired twice on 'Create/Update of <specific> entity' but the .NET code will not run twice.

    blog: <a href="http://technologynotesforyou.wordpress.com">http://technologynotesforyou.wordpress.com</a> | skype: ali.net.pk

    Wednesday, July 29, 2015 9:02 AM