Dataverse中更新状态列

发布于 2025-02-01 14:41:03 字数 244 浏览 5 评论 0原文

目前,我面临数据词的问题。我尝试使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅听莫相离 2025-02-08 14:41:03

设置statuscode,您始终必须包括statecode。您收到的错误消息建议当前statecodestatuscode表示intactive状态和状态(statecode = 1 and StatusCode = 2)。

要将记录设置为活动,请尝试将statecode设置为0

{ "statecode" : 0, "statuscode" : 1}

有效的STECODE和状态代码组合在数据范围内有所不同,因此您需要确保为情况选择正确的一个。

Setting the statuscode, you always have to include the according statecode. The error message you receive suggest that the current statecode and statuscode signify an inactive state and status (statecode = 1 and statuscode = 2).

To set the record to active, try setting the statecode to 0.

{ "statecode" : 0, "statuscode" : 1}

Valid statecode and statuscode combinations are varying across Dataverse entities so you need to make sure you pick the correct one for your case.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文