I have two content types: Request and Response. When Request reaches a certain state in its Workflow, Response needs to be created. At this point, certain fields from the Request are copied to Response. The field types include Integer, Text, File, Date and User Reference.
There is an Action that creates a Node. But I could not find an easy way to copy the field values into this new Node.
Node Convert module (http://drupal.org/project/node_convert) provides an action that converts one node type to another. But it does not clone the node before that. Is there a node_clone action?
Any other advice is appreciated.
Thanks in advance.
Comments
Comment #1
socratesone commentedSubscribing. Need to know how to do something similar. However, I need to copy a node reference field rather than a user reference field, but I think that the solution would be similar. I'll let you know if I find a solution.
Comment #2
amitaibumaybe you can use http://drupal.org/project/node_clone . Use PHP action and use node_clone API.
Comment #3
mitchell commentedEvent: When request is saved
Condition: Field 'workflow' has value 'ready'
Action: Create a new response
Action: Populate a field (for each field on your response, you need to use values from the "saved content" and fill it to the "created content")