I would like to create an automation when a custom field (user picker, single) is changed. If a user is added or removed from the field, I would like to notify the user via email.
For that, I created two separate rules. The one that is triggered when a user is added to the custom field (Tester) is working fine and the email is sent to Tester.
However, the rule to send email when the user has been removed from Tester is not...
The trigger is the same (Field value changed and field to monitor is Tester) but the change type is "Value deleted". I then want to send an email to the user who has just been removed from Tester, so I tried the following smart values among others:
{{deletedFieldChange.values}} and {{deletedFieldChange.fieldId.emailAddress}}
They all generate Automation rule error
"Unable to send the email as the recipient's email address wasn't provided"
How do I get the email address of the user that has been removed from the custom field (Tester)?
When your field is a single-select, user picker it can only have one value. It does not add or remove values: it changes the selected one. Are you certain this is a single-select field?
Assuming you actually have multiple-select user picker field, for the field change smart values with a user field, they only provide the value (e.g., the user display name) or the account ID. The email address is not available.
To get the email address there are two possible solutions:
Kind regards,
Bill
Yes, it is a single-select field - only takes one value at a time and may be empty as well.
Could I somehow use {{deletedFieldChange.values}} or {{deletedFieldChange.valueIds}}, which will have the Tester (user) name or account id(?), to find the user email ({{tester.emailAddress}})?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.