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.

Override Calculated value

SRI Sakthi
Tera Contributor

Hi Guys,

           I am trying to call script include from Dictionary override- calculation field but it's not working .can you help me to fix this issue?

find_real_file.png

15 REPLIES 15

Hope you are passing line

javascript:new global.datedetails().getDate(current.cmdb_ci)

 in qualifier in the field & not calculated.

find_real_file.png

 

No, that field type is "Date"-It's a custom field

Fine. But purpose of Calculated field is something different.

Look for Name field on User table its again a calculated field that has value of First Name & Last Name.

Also, in your script include you are returing gr.warranty_expiration; which is again a date value. 

Try passing it as reference qualifier & then change the return to be gr.warranty_expiration.getDisplayValue();

Fine..this date field is inherited from the task table so I tried this above code in task table dictionary entry like below, it's working very fine. but I don't want this functionality for all task extension tables I want only in the incident table so I pasted this line in Dictionary Override there it's not working..find_real_file.png

In that case you can create a Dictonary override for the incident table.

find_real_file.png

Remove the code from the place where you have it now & in the same page scroll to the bottom to find a related list called Dictionary Override.

Once done past the code you have currently directly on the Task table.