1
似乎無法在任何地方找到此錯誤的答案,這是我正在嘗試執行的操作。Dynamics CRM API不可用
我使用郵遞員來測試編寫代碼(PHP)前的API,當我做一個請求到CRM API端點https://orgname.crm.dynamics.com/api/data/v8.2/accounts
我不斷收到以下錯誤:
{
"error": {
"code": "",
"message": "Requested API Version 'v8.2' is not available",
"innererror": {
"message": "Requested API Version 'v8.2' is not available",
"type": "Microsoft.Crm.CrmHttpException",
"stacktrace": " at Microsoft.Crm.Extensibility.OData.CrmODataRoutingConvention.ValidateApiVersion(Version version, IOrganizationContext context, String versionStr)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataRoutingConvention.SelectController(ODataPath odataPath, HttpRequestMessage request)"
}
}
}
任何想法?
這裏的郵遞員要求
驗證:
POST /64aa16ab-5980-47d5-a944-3f8cc9bbdfa2/oauth2/token HTTP/1.1
Host: login.windows.net
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
grant_type=password&client_secret=<<secret>>&client_id=<<id>>&resource=https%3A%2F%2F<<orgname>>.crm.dynamics.com%2F&username=<<user>>&password=<<password>>
端點:
GET /api/data/v8.2/accounts HTTP/1.1
Host: <<orgname>>.crm.dynamics.com
Accept: application/json
OData-MaxVersion: 4.0
OData-Version: 4.0
Authorization: Bearer <<token>>
Cache-Control: no-cache
一個相關的問題,我發現,以爲我用的版本被棄用:microsoft crm 2016 api version auto-discovery
感謝您的幫助!