Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Asset state is "In stock"

shid077
Tera Contributor

How can i find out or calculate how long the the Asset state is "In stock" from alm_asset table.

4 REPLIES 4

Community Alums
Not applicable

Runjay Patel
Giga Sage

Hi @shid077 ,

Follow below steps.

  1. Create one metric definition like below.
  2. RunjayPatel_0-1732878784312.png

     

  3. Create one business rule, open the OOB on which is running on task table and do insert and update.
  4. RunjayPatel_1-1732878942921.png

     

  5. Create report on metric_instance table and filter with metric definition and state value like below.
  6. RunjayPatel_2-1732879087555.png

     

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------