Data comparison on multiple possible values

Created on 20 March 2023, almost 2 years ago
Updated 1 December 2023, about 1 year ago

I am creating a rule that blocks users if the value of a custom field on the user gets changed.
User are updated via a Salesforce Sync, which is why I need this rule and can't just ask admins to block users.
I have it set up like:

Event: After updating a user of type User
Conditions: Entity is of bundle user (gets me the custom fields) + Data Comparison (this is the bit I need help with)
Actions: Block user

So for the Data Comparison, I need to look at a field on the user, let's say 'favourite colour' and I want to block the user if the value is Red, Blue or Purple.

So this looks like:

DATA TO COMPARE: user.field_favourite_colour_.value
OPERATOR: what do I put here?
DATA VALUE: what do I put here?

I've tried 'IN' and 'CONTAINS' for the operator and a comma separated list for the values, but no dice

Thanks for your help.

πŸ’¬ Support request
Status

Active

Component

Rules Core

Created by

πŸ‡ΊπŸ‡ΈUnited States Katy Jockelson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024