Your approach is on the right path. To round it out, you can use the “extract” function to get the top level domain. Then, apply your search based on that.
Can you elaborate on “does not work in my workflow”? I’m not sure what the bug is based on what you shared
Regardless, it’d be better to move the “Only when” condition to the overall workflow instead of the Sign the user up action.
You may also encounter issues base on case sensitive values (ie Stanford.edu is different than stanford.edu). So normalize the values in your database and normalize the text entered by the user by using the :lowercase function.
Thanks for your feedback! I totally forgot about the lowercase thing.
I have tried to set it up like this but the condition “Search for Universitys:count is 1” is never true, even if the input mail has a domain that is on the list.
I’m happy to take a closer look. But need you to share either some more screenshots of your setup or a PM with a link to your editor. Otherwise, hard to point to a specific issue.
Whats not working?
Clicking on signup with the correct domain entered does not trigger the workflow.
It does not find the domain match (= the return count is 0).
Try doing something without the “-” in the name. There’s a chance you’re mixing up em dashes and en dashes.
As well, if you have any privacy roles set, a user may not be able to see this data. (Since they are not logged in at this point). The domain name field would need to be publicly accessible / found in search.
Lastly, try clicking on somewhere else on the page first, then clicking on the button. It may be that the button hasn’t picked up on the condition.
Otherwise, that’s all that immediately comes to mind based on what you’ve provided.