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.

Scripted Metrics do not run unless there is another duration metric for the same field

Jan60
Tera Contributor

Hello,

 

in my PDI I created a script based Metric Definition to calculate a value instead of a duration.

This metric definition was not executed and did not create metric instances upon changes to the field in the change request record.

 

It started to work only after I created another metric of type "Field value duration", which had the same or a lower order number. As soon as I delete this additional "Field value duration" metric or put the order number above the one of my scripted metric definition, it stops working.

 

Jan60_0-1724913027602.png

 

Does anybody have an idea, how to make the script based Metric Def work without the second one?

 

 

 

0 REPLIES 0