本文介绍了有没有在Dynamics CRM中使用c#更新状态的任何常用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用c#中的一种通用方法来更新状态。

I want to update the status using single common way in c#.

到目前为止,我了解SetStateRequest,但是它没有将其状态更改为任何状态。 例如,如果我想更改状态以实现订单状态或取消订单,则需要FulfillSalesOrderRequest和CancelSalesOrderRequest。就像明智的使用不同的类来获取报价的状态和其他一样。

For now I know about SetStateRequest but it did not change its status to any of status. e.g. If i want to change status to fulfilled for order or canceled for order then it requires FulfillSalesOrderRequest and CancelSalesOrderRequest .Like wise different different class for quote's status and others.

所以我想要一些更改状态的常用方法。如果有解决方案,请提出建议。

So I want some common way for change status.If is there any solution please suggest me.

推荐答案

如果如果您使用的是CRM 2015 Update 1或更高版本,则不推荐使用SetStateRequest,而建议使用普通的UpdateRequest,如:

If you are on CRM 2015 Update 1 or later, SetStateRequest has been deprecated in favor of a normal UpdateRequest, as seen on MSDN:

据说FulfillSalesOrderRequest(以及相应的报价请求)尚未被弃用,因此您仍需要使用它们。因此,您要查找的通用需求不存在。

With that being said, FulfillSalesOrderRequest (and the corresponding Requests for quotes) have not been deprecated, so you still need to use them going forward. The common reqeust you are looking for does thus not exist.

这篇关于有没有在Dynamics CRM中使用c#更新状态的任何常用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 09:36