Migrating Send Mail to APIv2
Hello
We are in the process of migrating workflow to APIv2. I’m having an issue on migrating the Send Mail to APIv2. I tried to loof the Collibra documentation and currently no replacement or counterpart to APIv2. We want to ask help if there is a work around or counterpart to use as replacment for Send Mail to APIv2?
marlonho
Posted 4 years ago · Edited 1 year ago·Last reply 4 years ago
1 comment
ravi
·4 years ago · EditedHi Marion,
The delegate is deprecated. Replace your service task containing this delegate with a script task, for example:
def usersIds = users.getUserIds(“role(Requester)”);
if (usersIds.isEmpty()){
loggerApi.warn(“No users to send a mail to, no mail will be sent”);
} else {
mail.sendMails(usersIds, “in-progress”, null, execution);
}