I have to make something like ,Work order should allow a single asset only 7 times in 7 days, like only 7 times a single asset can be added in a work order in 7 Days.I should only able to make work order of a particular asset only 7 times in past 7 days.
How can I do that anyone
Thanks in advance
Hi,
You can create a rollup field in Customer Asset entity to calculate the count of the related work orders.
Here is a documentation about the roll up field which you can refer to:
Define rollup columns with Power Apps - Power Apps | Microsoft Docs
Perhaps javascript on WO create that queries the asset, finds all work order incidents for the asset in the last 7 days, and surfaces an error if it is more than 7? Alternatively you can store the count on the asset but it would require you to constantly update that field when work orders are created, and then update it each night so it only counts the last 7.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
MVP-Daniyal Khaleel 48
Tom_Gioielli 44 Super User 2025 Season 2
mk1329 16