I have a problem with querying records of an entity type activityparty
.
I use the request to GET /api/data/v.../activityparties?$select=activitypartyid,partyidname
but it fails with the error:
{ "error":{ "code":"0x0", "message":"Could not find a property named 'partyidname' on type 'Microsoft.Dynamics.CRM.activityparty'." } }
Those two activitypartyid
and partyidname
field names I got from the request to EntityDefinitions('activityparty')
.
... "PrimaryIdAttribute": "activitypartyid", "PrimaryImageAttribute": null, "PrimaryNameAttribute": "partyidname", ...
Then I query EntityDefinitions('activityparty')/Attributes
to know is there a partyidname
attribute. I found there one interesting field 'IsValidODataAttribute' = false. Does it mean that this field could be in JSON or could not be? And what does it mean exactly? I suppose the problem is in this case, otherwise I do not know what I am doing wrong :)
whole representation of one activityparty
entity record:
{
"@odata.etag":"W/\"2392630\"",
"_ownerid_value":"68682bd9-701b-460a-a383-c6d38a8d25ae",
"activitypartyid":"b0f76c9b-49b9-45ca-b15c-0179a421f680",
"participationtypemask":9,
"_activityid_value":"7418ab6b-fbd2-e911-a993-000d3a3a1688",
"ispartydeleted":false,
"versionnumber":2392630,
"scheduledend":"2019-09-08T12:00:00Z",
"_partyid_value":"68682bd9-701b-460a-a383-c6d38a8d25ae",
"scheduledstart":"2019-09-08T12:00:00Z",
"instancetypecode":0,
"addressusedemailcolumnnumber":null,
"donotemail":null,
"donotfax":null,
"addressused":null,
"_resourcespecid_value":null,
"exchangeentryid":null,
"donotphone":null,
"donotpostalmail":null,
"effort":null
}