Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

subgrid Data copy

(0) ShareShare
ReportReport
Posted on by 249

Hello!

I want to retrive data from subgrid in (product Entity) and add the value in a Customer Entity subgrid(Abonnmen Entity).

the relation is like this:

the Parent Entity name (Sparte)

Product to Sparte is one to many

Abonnement to Sparte is one to many

relation between Abonnement and Product Entity is one to one

 pastedimage1581686991532v1.jpegpastedimage1581686991534v2.jpeg

  • Suggested answer
    Charles Abi Khirs Profile Picture
    3,569 on at
    RE: subgrid Data copy

    Hello,

    Based on your need you have 2 options:

    1. If you need to only display the related sparte from the product into the Abonnement entity, then you can use a quick view for the product entity with a subgrid to its Sparte records. Once the Product lookup is set on the abonnement, the quick view will be displayed.

    2. If you need to have the Abonnement linked to the same Sparte records of the product, than you have to write code to retrieve (RetrieveMultipe) the records related to specific product, and then loop for each Sparte record found in order to link it to the Abonnement record.

  • Suggested answer
    Ricardo Afonso Profile Picture
    on at
    RE: subgrid Data copy

    It seems like what you are trying to achieve could be done by using entity reference, by retrieving the value of the subgrid from the current entity you are in (either prodct ou abonnmen) and update the other entity via the entity reference connection.

    docs.microsoft.com/.../about-entity-reference

    docs.microsoft.com/.../microsoft.xrm.sdk.entityreference

  • oliver.rodrigues Profile Picture
    4,052 on at
    RE: subgrid Data copy

    What's the relation to Portals in your thread?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans