最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

D365FO:枚举字段上的数据实体筛选 / D365FO: Data entity filter on enum field

网络文摘 William 66浏览 0评论
To filter data entity using an enum field, we need to use a specific query expression syntax. For example, to filter Purchase order header data entity, PurchaseOrderHeadersV2, to get only ‘Confirmed’ purchase orders, we can add filter to DocumentApprovalStatus entity field which sources its value from VersioningDocumentState enum like below: https://usnconeboxax1aos.cloud.onebox.dynamics.com/data/PurchaseOrderHeadersV2?$filter=DocumentApprovalStatus eq Microsoft.Dynamics.DataEntities.VersioningDocumentState’Confirmed’ Untitled As you can see below the query filter successfully filters Purchase order header entity to get only ‘Confirmed’ purchase orders: Untitled
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址