Hi all,
Can anyone comment on CRM integration module development? I see there is an existing CRM API module as well as one which integrates with the Loopfuse CRM. We are using Eloqua, which is similar.
I need a group of contact/registration forms to re-post their contents to Eloqua, so folks who enter their information get placed into the CRM for reference. If the forms were straight HTML this would be trivial but I'm not sure how to go about writing a module which would do the form alter hook properly for this purpose. As far as I know all we need to do is add some hidden fields and integrate the re-posting to the Eloqua URL.
Any help would be much appreciated, I'm looking forward to contribute to the Drupal community which has given me so much.
Regards,
-Patrick
Comments
use the #action attribute
you can use the #action attribute to post to any url.
check out the forms quickstart guide and the forms api reference.
Thank you for your comment.
Thank you for your comment. Can you give me an example of how this might be used in a module to alter the contact form, for instance, to add some hidden fields and change the action?
any more thoughts on how to
any more thoughts on how to make "re-posting" form submissions happen, fellas?
Did you figure out a solution?
I am also in need of passing information submitted through a Drupal form to Eloqua.. I know it can be done!
Please let me know what you
Please let me know what you find, as I have a need for this too...
@Quevin — Sr. Technical PM
third party post
I found the solution for the contact us page as my task was just to send the info to other site
/**/
//new dBug($form_state);
// remote URL we want to post to
$url = '***site url***';
// set our headers
$headers = array(
'Content-Type' => 'application/x-www-form-urlencoded',
);
// the actual sending of the data
$response = drupal_http_request($url, $headers, 'POST', http_build_query($form_state['values'], '', '&'));
// if we get a good response, thank user for submission
if ($response->code == 200) {
drupal_set_message(t('Message'));
// otherwise let them know something went wrong
} else {
drupal_set_message(t('Message'), 'error');
}
/**/
but still no solution for the registration form.
Same problem here
Hi all I have a similar problem. I want to implement Eloqua in my drupal registration form. Can anybody help me on this or tell me if there is any modules for this.
I'm also doing this in the
I'm also doing this in the next month or so for work. Hoping a module is forthcoming. Anyone wanna team up?
Also looking at doing this.
Also looking at doing this. Eloqua makes this process more difficult with having multiple forms and custom form fields. you can't use standard field definitions in the module. I have been looking around to see how this would be possible.
I am looking at using Webform 3.x with the new hooks API.
Also looking at the following to tie in the registration.
http://drupal.org/project/webform_register
http://drupal.org/project/webform_registration
FYI, The author of webform_registration has built a private module that ties in with Eloqua for one of his clients.
Here is a php class to perform Data lookups in Eloqua if you are interested!
http://github.com/j-lee/Eloqua-Lookup
My PHP skills are basic, so who knows if if I can even get something working.
@doublejosh, while I may not be able to offer anything on the programming side, I use Eloqua on a daily basis and would be willing to collaborate with you on UI and integration methods.
below is the code to provide
below is the code to provide a custom action module to post data to Eloqua. Sorry, no upload on Forum! Create a folder called "eloqua_integration" in your sites/all/modules folder and save both the files to it. Enable profile.module, token.module, token_profile.module, trigger.module and this module. Add profile fields to registration form for the data you would like to collect in Eloqua. Go to admin/actions/manage and add new "Post to Eloqua" action and input URL and set fields using profile tokens. Go to /admin/build/trigger/user and assign action to "Trigger: After a user account has been created". Data will post to Eloqua when a user registers. Still working on webform integration, but this solves part of my problem.
Based on http_action module
eloqua_integration.info
eloqua_integration.module
We have a working custom Eloqua module
We have a custom Eloqua module that pushes an async post when the registration form is filled out as well as a few other purely submit button hidden item forms.
Potentially willing to do some work to pull this out into a real module, but I feel like the Eloqua people should probably provide some kind of resources since it enables Drupal sites to use their paid service.