有没有在Dynamics CRM中使用c#更新状态的任何常用方法 [英] Is there any Common Way for updating status using c# in Dynamics CRM

查看:153
本文介绍了有没有在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,如 MSDN

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


在Microsoft Dynamics CRM Online 2015更新1之前,需要专门的
消息来更新某些实体属性值。现在,可以使用
UpdateRequest来设置这些属性。下面的
表标识了不推荐使用的特定消息请求以及可以使用UpdateRequest更新的
相关消息属性。

Before Microsoft Dynamics CRM Online 2015 Update 1, specialized messages were required to update certain entity attribute values. Now, UpdateRequest can now be used to set these attributes. The following table identifies the specialized deprecated message requests and the related message attributes that can be updated using UpdateRequest.

据说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#更新状态的任何常用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆