Postman 更新记录的D365FO修补程序方法

Postman 更新记录的D365FO修补程序方法,postman,microsoft-dynamics,dynamics-crm-webapi,dynamics-365-operations,Postman,Microsoft Dynamics,Dynamics Crm Webapi,Dynamics 365 Operations,我试图用如下的补丁方法更新D365FO中的数据值 https://<URL>/data/DXCGeneralJournalAccountEntries(GeneralJournalAccountEntryRecId = 5637144584) Body: { "DXCAdeptiaProcessed": "2019-01-01T00:00:00Z" } https:///data/DXCGeneralJournalAccountEntries(一般日志AccountEntryRe

我试图用如下的补丁方法更新D365FO中的数据值

https://<URL>/data/DXCGeneralJournalAccountEntries(GeneralJournalAccountEntryRecId = 5637144584)

Body: {
"DXCAdeptiaProcessed": "2019-01-01T00:00:00Z"
}
https:///data/DXCGeneralJournalAccountEntries(一般日志AccountEntryRecId=5637144584)
正文:{
“DXCADEPTIAP过程”:“2019-01-01T00:00:00Z”
}
我得到的错误代码是

{ “消息”:“未找到与请求URI匹配的HTTP资源 “/data/dxcGeneralJournalAccountries(GeneralJournalAccountEntryRecId=5637144584)”。未找到此请求的路由数据。“}


你能告诉我为什么会出现这个错误吗

看起来您尝试更新的实体是一个自定义实体,它可能尚未在REST OData API中公开

如果您向
/Metadata/Entities
提交GET请求,您应该能够在结果中找到该实体。在这里,您可以检查该实体的属性,它应该如下所示:

{
  "Name": "DXCGeneralJournalAccountEntries",
  "PublicEntityName": "DXCGeneralJournalAccountEntries",
  "PublicCollectionName": "DXCGeneralJournalAccountEntries",
  "LabelId": "@SYS999999",
  "DataServiceEnabled": true,
  "DataManagementEnabled": true,
  "EntityCategory": "Master",
  "IsReadOnly": false
},

否则,文档可能有助于公开实体:

您尝试更新的实体看起来是一个自定义实体,并且可能尚未在REST OData API中公开

如果您向
/Metadata/Entities
提交GET请求,您应该能够在结果中找到该实体。在这里,您可以检查该实体的属性,它应该如下所示:

{
  "Name": "DXCGeneralJournalAccountEntries",
  "PublicEntityName": "DXCGeneralJournalAccountEntries",
  "PublicCollectionName": "DXCGeneralJournalAccountEntries",
  "LabelId": "@SYS999999",
  "DataServiceEnabled": true,
  "DataManagementEnabled": true,
  "EntityCategory": "Master",
  "IsReadOnly": false
},

否则,文档可能有助于公开实体:

您是否尝试过在正在使用的标识符周围放置“标记”


(GeneralJournalAccountEntryRecId='5637144584')

您是否尝试过在正在使用的标识符周围加上“圈”


(GeneralJournalAccountEntryRecId='5637144584')

是的,我已经试过了。因为这不是字符串,所以不需要引号。get可以正常工作。D365FO要求表中的所有字段都具有编辑权限,即使要更新一条记录。谢谢你提供的信息。是的,我试过这个。因为这不是字符串,所以不需要引号。get可以正常工作。D365FO要求表中的所有字段都具有编辑权限,即使要更新一条记录。谢谢你提供的信息。