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.

pass converted value from metric definition to metric instance record

devarshkhed
Tera Contributor

devarshkhed_0-1764910244974.png

The value which is coming from support start date field i wanted to return to metric instance by converting into mm/dd/yyyy format and store it.

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@devarshkhed 

is your above script not working?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

devarshkhed
Tera Contributor

Not Working

 

@devarshkhed 

your script is wrong.

Check OOTB Script Calculation Type metric definition and you need to enhance your script

AnkurBawiskar_0-1764920530232.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I have given my whole script please check