Trying to read custom field from Dynamics CRM 2016 using Xrm.WebApi

HHeckner

I want to read a custom field named (mxpcah_new_phonecalltype) using a WebApi call.

enter image description here

From my browser I can call: https://myurl/PhonecallActivityHistory/api/data/v8.2/activitypointers(CEA756CE-5D7E-EA11-A97E-005056B82894) and get: enter image description here

this result does not include the aforementioned custom field.

Now I query: https://myurl/PhonecallActivityHistory/api/data/v8.2/activitypointers(CEA756CE-5D7E-EA11-A97E-005056B82894)?$expand=activitypointer_activity_parties($select=participationtypemask,addressused)

Now I see: enter image description here

I am sure that my test activity has a value set for the custom field: enter image description here

I have made sure that this value is saved to the activity. Hit save button on the bottom right. Closed the browser window. reopend the browser and selected the activity to make sure the data is stored to the field

The custom field is defined as follows: enter image description here

So I would have expected to be 100000002 instead of null. Any idea why I can't read the custom field?

Also I took into account this resource: https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/350873/doesn-t-xrm-webapi-support-custom-fields/937811 I copy and pasted the custom schema name and made sure it is written correctly. More info on the Api is found here: https://docs.microsoft.com/de-de/powerapps/developer/common-data-service/webapi/retrieve-entity-using-web-api#retrieve-specific-properties

Arun Vinoth

Activity (activitypointer) is a container entity which will have all the OOB common attributes from across the different activity records like email, phonecall, fax, etc

Activity party is the container for associated attendees records like email sender, meeting participants, phonecall receivers, etc

So web api calls targeting either of the above will not give you the custom attributes which you created in specific activity type. ie phonecall

Instead try this:

https://crmdev.crm.dynamics.com/api/data/v9.1/phonecalls

https://myurl/PhonecallActivityHistory/api/data/v8.2/phonecalls(CEA756CE-5D7E-EA11-A97E-005056B82894)

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How to insert Ticket Number(lookup field) to MS Dynamics CRM Pricing Approval Products(Custom entity) using ssis's script component

分類Dev

Xrm.WebApi.online.executeMultipleを使用してDynamicsから複数のCRMレコードを削除したい

分類Dev

Dynamics CRM 2016:XRMサービスツールキットを使用してアカウントIDを取得しないでください

分類Dev

Dynamics CRM:EclipseでXrm.Pageライブラリを使用する

分類Dev

CRM 2013: Getting Data from Organization Service with Microsoft.Xrm

分類Dev

Dynamics CRM Online 2016 WebAPI-AuzureADオブジェクトIDでユーザーを取得

分類Dev

How to disable ribbon button based on Form in Dynamics CRM 2016?

分類Dev

Dynamics CRM2016-履歴ログの作成

分類Dev

Creating new entities from PHP using the Microsoft Dynamics NAV 2016's Odata web services

分類Dev

Dynamics Crm2016のWordテンプレート

分類Dev

Dynamics CRM2016でFormTypeが適切な値を返さない

分類Dev

Microsoft Dynamics CRM 2016、ビジネスユニットIDエラー

分類Dev

How to access Dynamics CRM OData using AngularJS with credentials

分類Dev

Dynamics CRM 365 WebApi 8.2AddListMembersListメソッド

分類Dev

Dynamics CRM 2011:Xrm.Page.ui.close();の後に表示されるポップアップを無効にします。

分類Dev

Dynamics CRM QueryExpression

分類Dev

Microsoft Dynamics CRM 2016にはレコード数の制限がありますか?

分類Dev

Dynamics Crm online2016は機会の状態コードを設定します

分類Dev

Dynamics Crm2016をWindows10にインストールできません

分類Dev

CalculateRollupField Dynamics WebAPI

分類Dev

Modify a button label in dynamics crm

分類Dev

Dynamics 365CRMのXrmオブジェクトを使用してフォームを読み取り専用に設定する

分類Dev

Dynamics CRM2016でクイック作成した後に親フォームを更新する

分類Dev

Microsoft Dynamics CRM2016サービスエンティティフィールドの作成

分類Dev

Dynamics CRM 2016:複数のフィールドのオートコンプリート

分類Dev

CRM Dynamics 2016ワークフローで-1を掛けることは可能ですか?

分類Dev

Dynamics CRM 2016(オンプレミス)呼び出しユーザーコンテキスト

分類Dev

Dynamics CRM 2016Online-ダイアログを使用した後にレコードを更新する

分類Dev

Dynamics CRM 2016 は、マーケティング リスト用に大量の Excel ファイルを生成します

Related 関連記事

  1. 1

    How to insert Ticket Number(lookup field) to MS Dynamics CRM Pricing Approval Products(Custom entity) using ssis's script component

  2. 2

    Xrm.WebApi.online.executeMultipleを使用してDynamicsから複数のCRMレコードを削除したい

  3. 3

    Dynamics CRM 2016:XRMサービスツールキットを使用してアカウントIDを取得しないでください

  4. 4

    Dynamics CRM:EclipseでXrm.Pageライブラリを使用する

  5. 5

    CRM 2013: Getting Data from Organization Service with Microsoft.Xrm

  6. 6

    Dynamics CRM Online 2016 WebAPI-AuzureADオブジェクトIDでユーザーを取得

  7. 7

    How to disable ribbon button based on Form in Dynamics CRM 2016?

  8. 8

    Dynamics CRM2016-履歴ログの作成

  9. 9

    Creating new entities from PHP using the Microsoft Dynamics NAV 2016's Odata web services

  10. 10

    Dynamics Crm2016のWordテンプレート

  11. 11

    Dynamics CRM2016でFormTypeが適切な値を返さない

  12. 12

    Microsoft Dynamics CRM 2016、ビジネスユニットIDエラー

  13. 13

    How to access Dynamics CRM OData using AngularJS with credentials

  14. 14

    Dynamics CRM 365 WebApi 8.2AddListMembersListメソッド

  15. 15

    Dynamics CRM 2011:Xrm.Page.ui.close();の後に表示されるポップアップを無効にします。

  16. 16

    Dynamics CRM QueryExpression

  17. 17

    Microsoft Dynamics CRM 2016にはレコード数の制限がありますか?

  18. 18

    Dynamics Crm online2016は機会の状態コードを設定します

  19. 19

    Dynamics Crm2016をWindows10にインストールできません

  20. 20

    CalculateRollupField Dynamics WebAPI

  21. 21

    Modify a button label in dynamics crm

  22. 22

    Dynamics 365CRMのXrmオブジェクトを使用してフォームを読み取り専用に設定する

  23. 23

    Dynamics CRM2016でクイック作成した後に親フォームを更新する

  24. 24

    Microsoft Dynamics CRM2016サービスエンティティフィールドの作成

  25. 25

    Dynamics CRM 2016:複数のフィールドのオートコンプリート

  26. 26

    CRM Dynamics 2016ワークフローで-1を掛けることは可能ですか?

  27. 27

    Dynamics CRM 2016(オンプレミス)呼び出しユーザーコンテキスト

  28. 28

    Dynamics CRM 2016Online-ダイアログを使用した後にレコードを更新する

  29. 29

    Dynamics CRM 2016 は、マーケティング リスト用に大量の Excel ファイルを生成します

ホットタグ

アーカイブ