E-Mail from the User's Service - Access User Name

I aim to customize the greeting message utilizing the built-in password reset user service. Specifically, I intend to replace the default “Hi there, …” with “Hi <<user_name>>.”

To achieve this, I tried to retrieve a column called “user_name” from the “Users” table using all kind of {{ }} syntax, but I could not make it. E.g. I tried: Hi there {{user_name}} and {{Users[‘user_name’]}}. But this won’t work.

Does anyone have insights on whether this customization is possible? In the docs I have not found anything on the topic.

Otherwise I would implement the custom sign-up process using the guide available at Anvil Docs | Custom user authentication.

What code have you tried already? Sharing that will help people get to the root of the problem and solution much faster.

I’ve modified my original question.

You modified the question, but didn’t even put one line of code, you put just a little piece without formatting.

That little piece doesn’t look like valid python, but in order to tell you how to fix it, we need to see (at least) that full line of code.

I apologize having not made clear that I wasn’t talking about the “normal” editor using Python but the “User’s Service”. That service seems to use some special syntax, compare e.g. the {{confirm_link}} from the default Anvil screen.

1 Like

I doubt it’s possible. I think the custom route is the only way.

Hello @Arne,

@hugetim is correct, the custom route is the way to go. :slightly_smiling_face:

1 Like