Hello Devs,
How can I get campaign activity marketing list (related) records in an OData query call to CampaignActivitySet? like this:
https://<servername>/xRMServices/2011/OrganizationData.svc/CampaignActivitySet
?&$expand=CampaignActivity_CampaignActivityItems
&$select=CampaignActivity_CampaignActivityItems
Above query returns with error:
'Microsoft.Crm.Sdk.Data.Services.CampaignActivity' does not have a property named 'CampaignActivity_CampaignActivityItems
However, I can get CampaignActivity_Tasks (related records) successfully.
The reason for this seems that this relation is not exposed in the 1:N Relationships of the Campaign Activity. Is there any way to achieve the same.
I can get the marketing list records in another OData query call (/CampaignActivityItemSet)but I need this in a single trip to server side.
blog: http://technologynotesforyou.wordpress.com | skype: ali.net.pk