This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Salesforce Integration and Amazing Support!!!
Started 14 years ago by samersamer | 5 posts |
-
Hey Everyone,
I have been working hard to do some really extensive integration, I would just like to take this opportunity to thank Yuniar and his team, wow is all I can say, not once have I emailed and they have not responded within 24 Hours,
One of my last tasks on my to-do list was to integrate with the salesforce web-to-lead forms, I used this thread here as a reference:
http://www.appnitro.com/forums/topic/aweber-integration?replies=13
And here is the code I used to connect to submit the data from the form to salesforce:
if($form_id == 3){
$target_url = 'https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8';$target_data['first_name'] = $table_data['element_2_2'];
$target_data['last_name'] = $table_data['element_2_3'];
$target_data['email'] = $table_data['element_3'];
$target_data['phone'] = $table_data['element_1'];
$target_data['city'] = $table_data['element_5'];
$target_data['xxxxxxxxxxxxxxxx'] = $table_data['element_4'];
$target_data['oid'] = 'xxxxxxxxxxxxxxxx';
$target_data['retURL'] = 'http://www.residentialhomehealth.com/';
$target_data['submit'] = 'Submit';require 'lib/HttpClient.class.php';
HttpClient::quickPost($target_url, $target_data);
}
I have places "xxxxxxxxxxxxx", these are your form IDS and so on that you need to customize, I removed them for security purposes :)
Good Luck! The team is amazing though, luck is always on your side with these guys.
-Sam
Posted 14 years ago # -
Thanks for this post; it really helped me a lot. I was able to get integrated within salesforce in under 30 minutes; no problems. I did have a question:
Any recommendations on passing Custom Values for Multi-Select Radios? Right now it just defaults to 1, 2, 3, in the Field Value. I don't see where to customize that information.
Posted 13 years ago # -
You will need to do a lookup to "ap_element_options" table to get the actual values of those index numbers.
This post should help you:
http://www.appnitro.com/forums/topic/drop-downs-and-mysql?replies=11MachForm Founder
Posted 13 years ago # -
I am taking a look at this as I need to have a form integrate into the SalesForce web to lead form, however I do not know where to put the code? Any help on this would be appreciated. I would also welcome someone installing this for me with a quote.
Thank you!
Posted 12 years ago # -
I followed all of the instructions in all the referenced posts, however it is not transferring the information to SalesForce. Are there any additional steps not mentioned in this post that I am missing?
The elements are correct, however the phone number is a 3-part element so I put element_7, although the phone is broken up into 7_1, etc. Is that correct?
I have pasted the code I placed in the post-functions.php below. I did also upload the HttpClientClass to the lib folder as instructed:
if($form_id == 1){
$target_url = 'https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8';$target_data['first_name'] = $table_data['element_27_1'];
$target_data['last_name'] = $table_data['element_27_2'];
$target_data['email'] = $table_data['element_6'];
$target_data['phone'] = $table_data['element_7'];
$target_data['company'] = $table_data['element_3'];
$target_data['oid'] = 'xxxxxxxxxxxxxxxxxx';
$target_data['retURL'] = 'http://xxxxxx.com/';
$target_data['submit'] = 'Submit';require 'lib/HttpClient.class.php';
HttpClient::quickPost($target_url, $target_data);
}
Any help would be appreciated! Thank you
Posted 12 years ago #
Reply
You must log in to post.