Scripts::. How to update workduration field? / Exe... - ServiceNow Community
tiagomacul
Mega Sage

Scripts::. Exemplo update campo workduration

              update workduration field Example 

 

How to update workduration field? 

 

var objInc = new GlideRecord("incident");
objInc.addQuery('number','=','INC0001234');
objInc.query();  
objInc.next();

gs.print(objInc.number); 
gs.print(objInc.u_duration); 

objInc.u_worked_duration = '06:00:00';
objInc.update();

 

Know-More-Now-Logo.jpg

Script Summary

 

Was useful, please leave your feedback!

Comments
RafC
Tera Guru
Tera Guru

Hi Tiago. The language of your article (Portuguese) is not supported in this community. Can you translate your article to English, please? Thank you

tiagomacul
Mega Sage

updated, tks

Version history
Last update:
‎03-02-2019 02:37 PM
Updated by: