Hi Experts,
I tried to retrieve with fetchXml the regardingobjecttypecode from the ActivityPointer Entity, but it does not return the attribute in the result.
I've tried the following fetch queries:
<fetch>
<entity name="activitypointer" >
<attribute name="regardingobjecttypecode" />
</entity>
</fetch>
or
<fetch>
<entity name="activitypointer" >
<all-attributes/>
</entity>
</fetch>
Both are not delivering the field.
When I try to retrieve the regardingobjecttypecode in a console application with the Dynamics SDK
it will also not returns the field value:
using (OrganizationServiceProxy service = new OrganizationServiceProxy(uri, null, credentials, null))
{
QueryExpression query = new QueryExpression("activitypointer");
query.ColumnSet = new ColumnSet("regardingobjectid", "regardingobjecttypecode");
EntityCollection activities = service.RetrieveMultiple(query);
}
but when I query for example the "phonecall" entity, I received the expected result.
Any hint?
Thanks!