Hello, I’ve been having some trouble with an email template. It doesn’t seem to be an issue on all of the templates, however.
I’ve got a template set up for “Change Password” emails, that attempts to lift a property from the user.user_metadata object. However, the values do not populate. I have appended a {%debug%} statement to the bottom of the e-mail template, and it confirms this.
I have verified that the user has the correct metadata property set (which is does), and I also have the exact same logic working on a “Verification Email (using Link)” template.
Is there any reason I cannot access the metadata from the “Change Password” template?
I understand that you want to call a user.user_metadata property in the Change Password email template. I tested this by adding the property parameter as below
<p>You have submitted a password change request.{{user.user_metadata.userproperty}}</p>
, where userproperty is a property name under user_metadata. In my testing, the value saved under userproperty was populated correctly with both Try button and clicking on the forgot password link on the login page.
Could you try the above scripts and let me know how it goes? If the issue persists, please provide the scripts in your Change Password template. I am happy to look into this further.
I’ve managed to locate client-b. It relates to the All Applications application. However, it doesn’t really help in this case, as it’s not something that will point to fixing my initial problem.
Could you please DM me the name of your tenant, the email of the user that you clicked on “Forgot password” to trigger the email, and the name of the application that the user tried to log in to? Thanks!