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.

function field in report servicenow

hind
Tera Contributor

Hi everybody

 

I am trying to create a report which displays the average processing time of RITM I created a calculate field of type formula and I put: Formula: glidefunction:datediff(closed_at, sys_created_on) here is the error which gives me

 

hind_0-1726671998800.png

 

2 REPLIES 2

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @hind,

The script you have written wouldn't work the way it is 

Pls refer the below thread:

https://www.servicenow.com/community/developer-forum/script-a-function-field-to-get-duration-from-no...

 

Please mark the answer as helpful and correct if helped.

Kind Regards,

Ravi 

Voona Rohila
Mega Patron
Mega Patron

Hi @hind 

Remove 'Formula:' and try

Just use glidefunction:datediff(closed_at, sys_created_on)

 

Refer Syntax here : https://docs.servicenow.com/bundle/xanadu-platform-administration/page/build/platform-functions/conc...

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP