09-07-2020 09:00 AM
Hi all,
I need to assign a Task to a user, but the inout data that I have from the user is his "externalID" rather thank his userId. Is it possible to get the "userId" from the "externalID"? If I get the "userId" I can use the task.setAssignee method, or is there any other approach? Thank you.
09-24-2020 08:04 AM
if you are using a task listener to set task.setAssignee(..). you can inject UserService from APS and get your user from external_id by userService.findUserByExternalId(externalId);
hope it helps.
09-24-2020 08:04 AM
if you are using a task listener to set task.setAssignee(..). you can inject UserService from APS and get your user from external_id by userService.findUserByExternalId(externalId);
hope it helps.
09-25-2020 12:18 AM
Thank you very much Abbas. Where I can find the documentation of all methods available in this userService bean? Are they another beans available to use? This looks realy handy.
Thanks again.
Explore our Alfresco products with the links below. Use labels to filter content by product module.