Skip to main content

Notifications

Community site session details

Community site session details

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

Help with Plugin to track how much time entity spent in each of business process stage

(0) ShareShare
ReportReport
Posted on by 25

  Hello!

  I need to write a plugin that does the following: we have a custom entity named Business Stage Run with fields like:

  

  "Stage Id", "Stage Name", "Next Stage Id", "Next Stage Name", "Duration", "Process Id", "Process Name", "EntityName", "EntityDescription", "EntityId
  When an entity in Dynamics change its business state, it should create a new record of the given entity with the fields above.
  I know Dynamics keeps track of business in an entity (e.g Oportunity have an entity called Oportunity Sales Process I think, with fields like activestageid), so I thought to write a plugin on update of those fields? But I'm a bit clueless about how to do it. Do you guys have any ideas?
  Thanks! Lucas.
  • Suggested answer
    Johao Larios Profile Picture
    1,795 on at
    RE: Help with Plugin to track how much time entity spent in each of business process stage

    Hello Luvas!

    You could registered the plugin on update stage an filter it by fields:


    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/best-practices/business-logic/include-filtering-attributes-plugin-registration

    I have used this a lot of times and is very helpful on these kind of scenarios. 

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 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…

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 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 102

Overall leaderboard

Product updates

Dynamics 365 release plans