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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Product hierarchy

(0) ShareShare
ReportReport
Posted on by 45

Suppose I've created a product A and it has area field and value of 300 sq ft

Now I want that the child product of A should not exceed this (Area) sq ft and if some other child exist the sum should not exceed the Area of parent product A I.e 300 sq ft

 How can I do it...any idea or solution you can think of?

I have the same question (0)
  • Suggested answer
    Virendra Agrawal Profile Picture
    150 on at

    Hello,

    There could be multiple solutions to this scenario.

    1. We could achieve it by using custom plugins

    • Create an additional field on the parent product record (say total sum area) to keep the sum of area values from the children records. You could also use a roll-up field (but this needs to be forced to recalculate after each child record creates) or create a plugin to sum the area from children.
    • Create a plugin to trigger upon the creation of a child record and check if the Total area (by retrieving all existing children and a new record) exceeds the total sum are on the parent record. if yes,  throw an error.

    2. We could also try to use the combination of roll-up, calculated field and Sync workflow (but here we will need to ensure that roll-up is always updated).

    • Create a rollup field on the parent product record (say total sum area) to keep the sum of area values from the children records. 
    • Create a calculated field to keep the remaining area value from the 'total sum area' and the main area.
    • Create a sync workflow to trigger on create of child record to check if the area value provided on the child record is greater than the remaining area field value on the parent. If yes, stop the workflow (which will throw an error.

    Hope this helps.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 85 Super User 2026 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#3
11manish Profile Picture

11manish 64

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans