Hi,

I posted this question in the general/post install forum but it would probably be better here:

I want to send an email to all users (of a role) when a new user registers.

The problem is the "replacement patterns" are not being replaced.

I generated the patterns using the data selector.

Here's the layout of the message:
Just to let you know [account:name] ([account:profile-main:field-firstname] ([account:profile-main:field-maiden-name]) [account:profile-main:field-lastname]) has just registered on the site.

And here's what the resulting email shows:
Just to let you know test3 ([account:profile-main:field-firstname]
([account:profile-main:field-maiden-name])
[account:profile-main:field-lastname]) has just registered on the site.

So the only field that was properly substituted is [account:name] (i.e. test3).

The other fields which all rely on the user's profile such as: [account:profile-main:field-firstname] are not being filled.

I found tables, for example: `field_data_field_lastname` which has the data I'm looking for in the 'field_lastname_value' field. Can I access this data in the rule?

Am I doing something wrong?

Thanks

Comments

CharlieCastle’s picture

Anyone?

Any ideas?

Thanks

TR’s picture

Issue summary: View changes
Status: Active » Closed (outdated)
Issue tags: -user, -profile, -rules, -replacemnt

For anyone encountering this issue... as it says in the UI:

To make entity fields appear in the data selector, you may have to use the condition 'entity has field' (or 'content is of type').

I suspect that was the original poster's problem. If you have a similar problem, please open a new issue with details about how to reproduce the problem and a complete description of the rule you are using.