Is there a way to find a node I created in a previous rule (according to logged in user)? I added a user reference to that node if that helps.

Comments

mitchell’s picture

Title: fetch node/entity created previously in rules (separate rules) » Help passing created entity to separate rule
Component: Rules Core » Rules Engine
Category: task » support

I think there was another issue about this. Working on other stuff atm, otherwise would search for you. Good luck.

Anonymous’s picture

Thanks, I'll keep looking and post if I find anything..

Anonymous’s picture

Anyone ever figure this out? :) Gonna try work on this..

firfin’s picture

I think you can use rule sets for this? Found under components.
rules should get the provided variables from earlier rules (in the same rule set)

Anonymous’s picture

I don't think I've used rulesets before. Can the variables be found and applied to two completely different actions that are performed at different times? (create and edit for example)

firfin’s picture

Rule Sets are sets or rules which are executed in sequence. They are a type of rules component.
The whole sets is executed by a 'normal' or triggered rule. Or by VBO or scheduled rule.
Check out the extensive help for rules (and the tiny guide to rules)
I suggest you spend some time reading the documentation pages, believe me you'll thank yourself for the time spend.

You could try to store a variable (in the entity?) until it is needed? Or maybe try a sheduled rule in the rule set? Or select the previous content using views.

There are loads of possibilities I can imagine. But it all depends on your use-case. Either way, rtfm ;)

Anonymous’s picture

I used to write manuals for a living ;) But yes I'll read it this time and let you know, thanks..

TR’s picture

Component: Rules Engine » Rules Core
Issue summary: View changes
Status: Active » Fixed

No further follow-up from the original poster, and the original poster no longer has a drupal.org account. So I'm assuming this was answered satisfactorily and marking this as fixed.

TR’s picture

Status: Fixed » Closed (fixed)