Dataverse中更新状态列
目前,我面临数据词的问题。我尝试使用C#(和Postman)通过Web API更新预定义的statuscode
列。
我尝试使用这些代码来更新
{
"statuscode": 1
}
错误的错误是
1不是状态代码(实体)状态的有效状态代码。
谁能帮我吗?
谢谢!
Currently, I'm facing a problem with DataVerse. I try to update the pre-defined statuscode
column through the Web API using C# (and Postman).
I've tried to update with these lines of code
{
"statuscode": 1
}
The error is
1 is not a valid status code for state code (Entity)State.Inactive on (Entity) with Id.
Can anyone help me?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
设置
statuscode
,您始终必须包括statecode
。您收到的错误消息建议当前statecode
和statuscode
表示intactive
状态和状态(statecode = 1 and StatusCode = 2)。要将记录设置为
活动
,请尝试将statecode
设置为0
。有效的STECODE和状态代码组合在数据范围内有所不同,因此您需要确保为情况选择正确的一个。
Setting the
statuscode
, you always have to include the accordingstatecode
. The error message you receive suggest that the currentstatecode
andstatuscode
signify aninactive
state and status (statecode = 1 and statuscode = 2).To set the record to
active
, try setting thestatecode
to0
.Valid statecode and statuscode combinations are varying across Dataverse entities so you need to make sure you pick the correct one for your case.