Hi everyone.
I need a groovy script that get email user of currently executing task, please. I’m using the community 2023.2 version.
Regards.
Mauricio Iturrieta
Hi everyone.
I need a groovy script that get email user of currently executing task, please. I’m using the community 2023.2 version.
Regards.
Mauricio Iturrieta
Hi @mriturrietaf, Which context do your script run? directly in the diagram or in the REST API Extension?
I will try to make an example with Groovy script connector:
I use the Code Template to get the PersonalContact
of user
String userId = 1 // You can get the userId from the Contract of Process or Task.
def personalContactData = apiAccessor.getIdentityAPI().getUserContactData(userId, true)
String email = personalContactData.getEmail()
return email