web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Odata linked entity query

(0) ShareShare
ReportReport
Posted on by 675

Hi friends,

I want to link campaignproduct with Product entity in Odata query. For e.g.

SDK.REST.retrieveMultipleRecords(
                                   "campaignproduct",                                   
                                   "$select=campaignproductId,name,Product/invoice,Product/popularname&$expand=Product&$filter=Campaign/Id eq Guid'" + parent.Xrm.Page.data.entity.getId() + "' and statecode/Value eq 0",
                                   function (results) {
                                       if (results.length > 0) {
                                           ...
                                       }
                                   },
                                   function (error) {                                      
                                   },
                                   function () {                                      
                                   });

But I am not able to get the query correctly. I am getting this error : Type 'Microsoft.Crm.Sdk.Data.Services.campaignproduct' does not have a property named 'Product'.

Am I missing it somewhere. Please let me know.

Thank you,

*This post is locked for comments

I have the same question (0)
  • Verified answer
    VPrashant Profile Picture
    675 on at

    Hi all,

    Thanks to this site :

    https://community.dynamics.com/crm/b/misscrm360exploration/archive/2014/10/12/tips-and-trick-that-make-it-easy-to-deal-with-odata-in-crm-2011-2013

    I rectified what I was doing wrong. I corrected by checking this site and now its working as expected.

    Thank you. :)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans