
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2017 08:39 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2017 01:02 PM
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();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2017 01:16 PM
Thank you.... This got my script to work so thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2017 01:22 PM
Oh I didn't see that your screenshot and script you pasted is different Anyhow you got it working great.
Thanks,
Bharath.