如何通过 Web 检索属性的显示名称 API?

How to retrieve the display name of an attribute via the Web API?

我目前正在通过 Web API 从 Dynamics365 中提取联系人记录,在该记录中,有许多属性,例如仅限营销

逻辑名称为 marketingonly,但显示名称为 'Marketing Only'

我的问题分为两部分:

1) 如果我知道逻辑名称,如何检索属性的显示名称?

2) 我能否在一次调用中检索联系人属性的所有显示名称?

是的,你可以。 Read more

  1. How do I retrieve the Display Name of an attribute, given I know the Logical name?
https://<crmdev>.crm.dynamics.com/api/data/v9.1/EntityDefinitions(LogicalName='contact')/Attributes(LogicalName='parentcustomerid')?$select=LogicalName,DisplayName
  1. Can I retrieve all the Display Names for a contact's attributes in a single call?
https://<crmdev>.crm.dynamics.com/api/data/v9.1/EntityDefinitions(LogicalName='contact')/Attributes?$select=LogicalName,DisplayName