Community & Support

Is it possible to Post form data to two different destinations?

Hi all.

I'm just wondering if it is possible to set up (ideally a CCK-based) form, and when the user fills in the info and clicks the submit button, save it to Drupal's dB and forward the information to another external site (e.g. Salesforce). I assume one could set up an action to do this? Can someone point me in the right direction?

I can think of several reasons as to why I'd like to do this, but are there some big gotcha downfalls? In most instances, for the users I care about anyway, they will only be able to add/edit the info in Drupal.

Thanks in advanced,

Dan

Comments

you might try the saleseforce

you might try the saleseforce module http://drupal.org/project/salesforce.

Or, you can tack on an extra submit handler with hook_form_alter on the node form for the specific content type that you wish to store in both drupal and Salesforce. The extra form handler could use a curl request to post to Salesforce.

Thanks!

Thanks Jbomb, omnitrick.

I like the hook_form_alter idea if the Salesforce API doesn't cut it.

Dan

Webform may be what you are

Webform may be what you are looking for. Not sure if it will do what you want.

Carnevale Design
We make the web taste good!
http://carnevaledesign.com