cancel
Showing results for 
Search instead for 
Did you mean: 

assign a task based on "externalID"

jose_leon_coupa
Confirmed Champ
Confirmed Champ

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.

1 ACCEPTED ANSWER

abbask01
Star Collaborator
Star Collaborator

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.

Regards,
Abbas

View answer in original post

2 REPLIES 2

abbask01
Star Collaborator
Star Collaborator

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.

Regards,
Abbas

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.