Casting InputParameters to early bound in Dynamics CRM RRS feed

  • Question

  • Hi All,

    I am using developer toolkit for develop my project, and I am using "generate wrapper" feature for generate my entities class, how to cast InputParameters["Target"] in PluginContext to my entity class that generated by "generate wrapper" feature?


    now i use:

    Entity regional = (Entity)localContext.PluginExecutionContext.InputParameters["Target"];

    how to cast to:

    Account account = localContext.PluginExecutionContext.InputParameters["Target"] ???

    please advise.



    Wednesday, February 26, 2014 7:06 AM


  • It's the same way that you cast to Entity.

    Account account = (Account)localContext.PluginExecutionContext.InputParameters["Target"]

    • Marked as answer by pntr Tuesday, April 15, 2014 3:47 AM
    Wednesday, February 26, 2014 9:08 AM