Inside Activate
...
How To
How to setup SupportsUpdateUser on Services
2 min
how to setup supportsupdateuser on services that require updating based on the update user task some activate services may require an update to be triggered when the user updates their details using the update user task this can be useful if you have a service that is dependent on user information this can be done by implementing the "supportsupdateuser" flag on the service as this involves scripting, you may require additional support to implement this please contact your activate representative to arrange additional support the following steps explain how to setup the service for this steps 1\ on the service set the "supportsupdateuser" flag 2 if the service does not currently have a "script" parameter setup, create a new script (ensuring allowinherited is set), and that it contains the following function stubs public void create(serviceinstance srv) public void delete(serviceinstance srv) public void update(serviceinstance srv, serviceinstance updateflags flags) 3 add an updateuser stub public bool updateuser(serviceinstance srv) { return true; } 4\ you can now add the code that will be executed when an update user task is executed for the user important if the customer uses a customised update user task, you will need to ensure that the following function exists in one of the scripts within the task user services onupdateuser(job) if this does not exist then the updateuser in the service script will not be executed