Script Action - Set field value?

Edwin Fuller
Tera Guru

I need to have a script action set a fields value "current_status" to a specific value "Complete - Auto Closed". Can anyone let me know how this can be written?

Thanks so much,

Edwin

1 ACCEPTED SOLUTION

Hi Edwin,



Your scheduled script looks fine as per screen shot. However the code you pasted, does not have correct syntax for gs.eventQueue() function in schedule script.



In your script action just do this:



closeRecord();



function closeRecord() {


current.current_status = 'Complete - AutoClosed';


current.update();


}


View solution in original post

6 REPLIES 6

Thank you.... This got my script to work so thank you


Oh I didn't see that your screenshot and script you pasted is different Anyhow you got it working great.



Thanks,


Bharath.