I didn't see a way to do this right off bat, but it would be sweet if we could fetch the entity submission later down the road if we had NID and SID.
Basically a webform_get_submission() for rules.
I didn't see a way to do this right off bat, but it would be sweet if we could fetch the entity submission later down the road if we had NID and SID.
Basically a webform_get_submission() for rules.
Comments
Comment #1
stborchertUhm, what exactly would be the purpose of this action (other than using
webform_get_submission()?Comment #2
that0n3guy commentedHere is an example use case:
I have a webform that, after submit, adds a product (drupal commerce) to cart. It stores the webform SID and NID in the commerce order via custom line type. Later down the road, the order is marked as "complete" or "paid" and I want to send an email via rules with some of the webform info in it. I have the webform sid and nid stored in the order, so all I need to do is webform_get_submission() to get the values to embed in an email.
Thats just one example. It just seems that if we have the ability to use the webform info right after submitting/editing a webform submission, why not be able to use that info at a later date as well. I think there are a lot of uses cases for this.
p.s. For my example above, I know there is the commerce_webform module, but it has issues w/ conditional fields on webform so I just decided to go homebrew.
Comment #3
stborchertCommitted to 7.x-1.x-dev.
Thanks for your input.
Note: the action provides a list of submissions (even if you configure it to load only one).