locked
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?

    ex:

    now i use:

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

    how to cast to:

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

    please advise.

    thanks.

    -Rory.

    Wednesday, February 26, 2014 7:06 AM

Answers

  • 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