assign a task based on "externalID"

cancel
Showing results for 
Search instead for 
Did you mean: 
jose_leon_coupa
Active Member II

assign a task based on "externalID"

Jump to solution

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 Solution

Accepted Solutions
abbask01
Senior Member

Re: assign a task based on "externalID"

Jump to solution

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 solution in original post

2 Replies
abbask01
Senior Member

Re: assign a task based on "externalID"

Jump to solution

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
jose_leon_coupa
Active Member II

Re: assign a task based on "externalID"

Jump to solution

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.