Rules action does not save Rendered fields on message

Created on 30 March 2014, about 10 years ago
Updated 15 January 2024, 5 months ago

I have been trying to get the Message Notify example to work using Rules instead of custom code. I can get the email to be sent but when trying to duplicate this part of the code in rules it doesn't save the rendered data:

$options = array(
        'rendered fields' => array(
          'message_notify_email_subject' => 'field_rendered_subject',
          'message_notify_email_body' => 'field_rendered_body',
        ),
      );

I then wrote a custom function to see if I could make it work exactly like Message Notify Example and it worked without trouble. I also noticed rules was throwing an error " Unable to get a data value. Error: Unknown data property field_message_rendered_subject. " The field_message_rendered_subject is a text field. I also tried this as a long text field but it didn't seem to matter.

My conclusion is there is something wrong with saving the Rendered Subject Line and Rendered Body fields with Rules. I don't have time right now to dig into it but I wanted to see if anyone else had this issue or had any ideas on how to fix it.

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Ravenight

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024