I want to read a custom field named (mxpcah_new_phonecalltype) using a WebApi call.
From my browser I can call:
https://myurl/PhonecallActivityHistory/api/data/v8.2/activitypointers(CEA756CE-5D7E-EA11-A97E-005056B82894)
and get:
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)
I am sure that my test activity has a value set for the custom field:
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:
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://learn.microsoft.com/de-de/powerapps/developer/common-data-service/webapi/retrieve-entity-using-web-api#retrieve-specific-properties