In reference to this solution, I've tried to implement the same technique (importing this rule) and the tokens aren't appearing in the archived entity:
https://www.drupal.org/node/1938618

screen

any ideas are appreciated!

Comments

hansfn’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry about the late reply.

I deleted your comment on #1938618: Archive sent newsletters to keep the discussion in one place.

First, does the tokens work outside rules - when sending the email? Secondly, you need to post the complete notice (the you quoted half-way in the other comment).

Try to create a minimal view with the problem, export it, and attach it to this issue. Also attach the export rule.

erald’s picture

Having also some problems with the tokens when using them in a rule.
For one I am getting the error
Trying to get property of non-object in views_send_tokens() (line 1251 of /sites/all/modules/contrib/views_send/views_send.module).

and nothing ended up in the saved node.

Searching I found the problem and created a little patch

--- a/sites/all/modules/contrib/views_send/views_send.module
+++ b/sites/all/modules/contrib/views_send/views_send.module
@@ -1248,7 +1248,7 @@ if (module_exists('token')) {
     $replacements = array();
     if ($type == 'views_send_email_message' && !empty($data['views_send_email_message'])) {
       foreach ($tokens as $name => $original) {
-        $replacements[$original] = $data['views_send_email_message']->{$name};
+        $replacements[$original] = $data['views_send_email_message'][$name];
       }
     }
     return $replacements;

It was referencing an object which is wrong. With this change everything worked as it would..

hansfn’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Sorry, but I don't see that I will have time to fix any D7 issues.