Quantcast
Channel: Forum CRM Development
Viewing all articles
Browse latest Browse all 1000

How to get Campaign Activity Marketing List using OData query to Campaign Activity

$
0
0

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



Viewing all articles
Browse latest Browse all 1000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>