Arun Vinoth @ Dynamics

Arun Vinoth @ Dynamics

https://arundynamix.blogspot.com

CRM Activity Mystery

Published

Activity is always a mystery piece in Dynamics CRM, it is actually a maze where new comers will get lost. One such example is this, let's see this community user SO question.

They created a custom attribute in phonecall entity, but they assumed it will be available on activity which is not the case. Only common attributes across all activity types including a custom activity will be put in this activity container whereas any custom fields will be in respective entity.

This endpoint will give you the common activity attributes: /api/data/v9.1/activitypointers

But to get the specific activity attributes and custom fields - which one to use?

Let me paste my response as is from there:

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

 Another interesting thing is, the activity guid of that record will be same in activitypointer and phonecall. 

Continue to website...

More from Arun Vinoth @ Dynamics