Unable to compile code when using OrderClose class

前端 未结 4 1374
感动是毒
感动是毒 2021-01-17 02:10

I\'m trying to build a plugin that does some operations on a salesorder. I also have to set a order as fulfilled. I found on the SDK documentation an extract that must be us

4条回答
  •  走了就别回头了
    2021-01-17 02:36

    OrderClose is in the Assembly "Microsoft.Crm.Sdk.Proxy" (in Microsoft.Crm.Sdk.Proxy.dll)

    Have you added Microsoft.Crm.Sdk.Proxy.dll as a reference? Not just

    using Microsoft.Crm.Sdk.Messages;
    

    but actually going over to the solution explorer pane and right clicking References > Add Reference and choosing Microsoft.Crm.Sdk.Proxy.dll.

    Edit: Right clicking on something red-squigglied and picking "Resolve" won't work unless the correct assembly is referenced.

提交回复
热议问题