Unable to compile code when using OrderClose class

前端 未结 4 1389
感动是毒
感动是毒 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:17

    Since OrderClose is not a class, but the name of a Property, you cannot create it using new.

    As the property is of type Entity, you need to create an instance of Entity like this:

    request.OrderClose = new Entity();
    

提交回复
热议问题