How to stop contact local time field update on case

lucky6
Tera Contributor

Hi Everyone, 

Is any one has idea why contact local time field is updating on case everyday?..from which script it is updating..

Can anyone help on this..

Thanks in advance 

7 REPLIES 7

Sagar Pagar
Tera Patron

Hi @lucky6,

You have to check is there any scheduled job scripts, which updating your Contact local time field on case records.

 

Thanks,

Sagar Pagar

The world works with ServiceNow

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @lucky6 

That field has actually calculated value 

GunjanKiratkar_0-1669207068699.png

And that is calling OOB script include :- "CaseTZHelper" which is returning the value from that script include based on timezone.If timezone is not set it returns blank.


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

Hi Gunhan Kiratkar,

Thanks for the reply..is it expected behavior to update the case everyday and is it best practice?..

I have seen there is no update on case but when I filtered updated on today I am getting cases which contact local time is updated..

Hi @lucky6 ,

That is OOB and it updates when timezone of user updates. That is the only way they can show the current time in that contacts timezone. 

Their are other ways as well like BR or client scripts but calculated value has best approach to do this kind of functionality. 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy