I am trying to structure a rule that updates a new entityform submission conditionally with extra info from a different entityform type.
I currently have my rule set as follows:
After creating new entityform submission [entityform]
[entityform] is of type = submission Data Comparison: [entityform].type = EntityformType Data Comparison: boolean field = true Entity has Field = ReferenceField
The boolean field sets the condition to fetch additional information.
ReferenceField is an entity reference field created in Views, which references [Entityform2] by Submission ID.
Fetch by Property = [Entityform2] Type Loop Fetch by ID = [Entityform2] Submission ID Component
Component has variables that need [EntityForm] and [EntityForm2.ID] to operate. It performs the necessary rewrites on [EntityForm].
Of course the problem here is that the two datasets aren’t linked in the rule. So, depending on how I reference Fetch by ID, I’m current either restricted to the first item in the list (attached to Entityform2.0) or the last (attached to the Loop, which keeps rewriting until it runs out of options).
Obviously, I should be pulling the ReferenceField from Conditions to set the ID for Entityform2, but it’s not working. I have tried:
Fetch by ID using ReferenceField as the value
Fetch by Property = Submission ID and ReferenceField as the value
Created variables based on ReferenceField and tried to fetch on value
Created variables based on the ReferenceField entityform-id and tried to fetch on value
But every time I try to insert value from ReferenceField, the component breaks.I feel like this should be a pretty straightforward fetch operation, but I’m stuck. Am I missing a step?