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

socratesone’s picture

Subscribing. 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.

amitaibu’s picture

maybe you can use http://drupal.org/project/node_clone . Use PHP action and use node_clone API.

mitchell’s picture

Component: Provided module integration » Documentation
Category: feature » support
Status: Active » Fixed

Event: 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")

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.