No email being sent

Need some help. Tried asking GlideAI, but it just go round i circles.

When a user registers, they choose which postal codes they want. When a user then makes a post, they enter the postal code. I would like to send an email to the users who have chosen the postal code that the new post is entered with. How do I do this via workflow?

In user table I’ve made

In Post table i’ve made this

Then in Form Submit I’ve made this workflow:

But no email is being sent. And Zero runs.

What am I doing wrong. It did work at some point, but can’t get it to work now.

Are you sending the email as an on-submit action of a form (for the post)? If so, you might want to add a wait module of around 3-5 seconds to make sure the relevant info has been calculated before the email is sent.

yes. It is on-submit workflow. Tried to put a wait in, but still no email

If I remove add row (to another table) and the wait so it’s just the send email I can’t clik on the

“Run” button.

The “to” is empty.

I know. But no matter what I do, I can’t seem to fill it. Got it to work 1 time, then I changed the text in Subject and Body and now it dosen’t work again.

Can you show me the configuration of the Send Email step?
Where are you getting the values from?

Is there any chance your are trying to pull emails from a table under row ownership?

Yeah, that’s where I was going…

Okay. Does the table that the query column is targeting have row owners applied to any column?
If it does, that is most likely the source of the problem (as Jeff suggested).

It is the correct email shown in the column “Join List”. But Workflow is sending to the user that made the post, and not the user email in “join list”

changed a bit. Made a relation column.

And a Join list column

But the emails in Join List is still not put in the “To” field when workflow run

You haven’t answered the question about row owners. Again, is there any column in your Admins table that has row owners applied? (by default, the Email column always does).

The email column has row ownership applied to it? Only one row of data is ever downloaded and usable by any user.

I think this is where Jeff and Darren were going with this. If you don’t need row ownership, remove it from the email column and try again with sending emails.

But I have read “If your app has a User Profiles table, where each user should access their own profile row but not the profile rows of other users, you should enable Row Owners on that table. Here are some examples and strategies to help you apply this to your apps.”

What do I then do?

That is true and recommended practice to protect user data, but at the same time you are asking the app to run a client side action that tries to get data (emails) from unowned rows. The user does not own the rows with the emails and therefore cannot access them. As far as the app is concerned, those rows do not exist. You cannot send an email to a user that does not exist.

I don’t know what the exact setup would be, but you probably need to use one of the server side workflows that don’t have this restriction.

OK. Tried to remove row owner, and now it works.

But is a bit confused, because I got it to work last year. Now I had some time to work on the app, and now it doesn’t.

Maybe you added row owners to the user table sometime between then and now… It has always been the case that unowned rows are not accessible, even through a relation. There is no loophole or backdoor way to access unowned data if the user is not the owner.

What you see in the data editor is not to be trusted when row owners come into play. The data editor still has access to all rows and acts as if they are there whether they are owned or not, but the front end app only has access to owned rows.

That’s why I suggest using a server side workflow to send the emails if you still want to protect user PII.

Thanks for the help, but is still struggeling.

If my users have their own User Profile in the app, I need to have Row owner? Tried to remove Row owner and checked the app where it is the wrong user, when I click on My Profile.

Then tried to make a “email target” table (not row owner), where I would like that when a new user signs up (button) a row would also be added in “email target” with ID, zip code and email, but I can’t get that to work either.

Additionally, what do I do if I expect to have over 5000 users?