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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics CRM 2015 How to retrieve the products in a bundle.

(1) ShareShare
ReportReport
Posted on by

I've looked around for the answer to this and I haven't found it. 

I have a C# program that will read a custom entity. The custom entity has a lookup field that points to either a product or a bundle. If the status in the entity is set to canceled I need to cancel the subscriptions that relate to that product or bundle. I can read a single product or a bundle but I'm not sure how to read the products that make up the bundle.

Thanks,

Gary

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Karth Profile Picture
    on at

    You need to query product associations first. Here's how you can build that query using Advanced Find. Sorry I'm not much of a developer, so wouldnt be able to give you the code snippet.

    36882.Capture.PNG

  • Community Member Profile Picture
    on at

    I'm having trouble as well with retrieving products from Dynamcs CRM with C# I'm trying to retrieve it with 

    Product checkProduct = (Product) ctx.Retrieve(
                            Product.EntityLogicalName,
                            _ProductId,
                            new ColumnSet("Products"));


    But Visual studio doesn't recognise the ctx.Retrieve (cannot resolve symbol 'Retrieve') . ctx contains the connection to Dynamics

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans