Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

How can I count the assets in work order.

(0) ShareShare
ReportReport
Posted on by 186

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

  • Suggested answer
    RE: How can I count the assets in work order.

    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.

  • Suggested answer
    Nya Profile Picture
    Nya 29,058 on at
    RE: How can I count the assets in work order.

    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans