I'd postEdit - Ok, here's the rule export (and will if it helpsbeing used:
{ "rules_results_uploaded" : {
"LABEL" : "Results Uploaded",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules", "php" ],
"ON" : { "node_insert--uploads" : { "bundle" : "uploads" } },
"DO" : [
{ "entity_fetch" : {
"USING" : { "type" : "user", "id" : [ "node:field-for-user:uid" ] },
"PROVIDE" : { "entity_fetched" : { "entity_fetched" : "Fetched entity" } }
}
},
{ "drupal_message" : { "message" : "Receipt of the sample on \u003C?php echo $data[\u0027components\u0027][\u0027sample_received\u0027][\u0027value\u0027][0]; ?\u003E has been acknowledged. \r\n\r\nAn e-mail will be sent to [entity-fetched:field-practitioner-name] at [entity-fetched:mail]" } },
{ "mail" : {
"to" : "[entity-fetched:mail]",
"subject" : "Your Sample Results Have Been Uploaded",
"message" : "Dear [entity-fetched:field-practitioner-name],\r\n\r\nNew sample results are now available on your account.",
"from" : "[email protected]",
"language" : [ "" ]
}
}
]
}
}
Again,) but again it the rule works fine when fine when adding a new node of the type 'uploads' one at a time, it just doesn't work using bulk media upload (though triggering multiple times.) Perhaps I'm misunderstanding how BMU works.
Any thoughts or alternatives still much appreciated.
Thanks!