- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2014 05:49 AM
Hi,
I tried closing task from UI button as follows
task.state = 3;
task.close_notes ='Request has been completed';
task.update();
I tried using 'current' as well.. but results in no change.
However, its not updating the task.
What am I missing here ?
Thanks,
Abhijeet
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2014 06:33 AM
Oh yes it shouldn't be client callable it should just run server side, uncheck that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2014 06:33 AM
Oh yes it shouldn't be client callable it should just run server side, uncheck that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2014 06:51 AM
Hi,
It worked for me ! Thank you very much mguy and Kalai 🙂
regards,
Abhijeet

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2014 06:17 AM
'task.' works in workflow only.... it could work in 'script include' if it is getting called through workflow....
use 'current.' and it should work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2014 06:47 AM
this is a classic rookie mistake
this question crops up now and then, very frequently of using server side and client code in a ui action
this should help
http://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/
I guess service-now wiki should write a article on this
Atleast I feel this is very frequently asked

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2014 06:56 AM
mark the question as answered and close the loop off