Skip to main content
I have an activity that has 3 destination users however I only want to send email with URL to a specific user amongst the 3.

If I check regular Default Client event with SMTP Notification Message, the email is sent to all 3 users.
Therefore I coded my email sending routine in Destination Rule so it's only sent once to the person I picked.

However I can't get the SERIALNO from K2 As DestinationRuleContext in the Destination code for sn={SERIALNO} URL.

If I define ServerEvent, it seems to fire once for each destination as well?!
Hi Peter,

If you want to only send 1 email you will need to go into the code behind the client event and write some logic around the SMTP notification code so that it will only run when the Destination User is the one you want to send the email to.

Something like this:

if(K2.ActivityInstanceDestination.User.Name == "user1")
{
SMTPFunction(K2);
}

I hope this helps
-Eric

Reply