I am working on a site for an academic conference. Right now, we have two content types (1) proposal and (2) peer review. In the proposal content type, an author can add multiple presenters to a user reference field. When the node is saved, I have a rule that loops through the user reference field and sends an email notification to all the presenters that the proposal has been submitted. Works great!
Now the question. I want to send an email to that same group of users when someone else posts a peer review. I have figured out how to notify the "author" of the proposal but I want to notify all the users listed in the node reference field.
Right now my rule is set up as follows:Event: after saving new contentConditions: content is of type > peer reviewActions: Fetch entity by property:-Value: node-Value: node reference-Data selector: nodeVariable label: Fetched proposalVariable name: fetched_proposal
Then I have a loop:Data selector: fetched-proposalCurrent list itemVariable label: Current proposal itemVariable name: proposal_list_item
Then I have an action to send the mail. Since I've looped over the proposal connected to the peer review, I have available a token for the presenter field which contains the node reference. I've used that token in the "To" value field.
I think this should work but I don't get emails when testing.
When I check my log messages I see this error: The loop Loop () fails the integrity check and cannot be executed. Error: Data selector fetched-proposal: for parameter list is invalid.
Can anyone help me figure this out?