Machform与Salesforce的集成

What i want:

I have created a form in machform. Now I need to save this form data to my salesforce account somewhere (either as account or leades or contacts that's not the issue)

What i tried:

1. I tried to follow this tutorial:

https://www.machform.com/blog-mailchimp-integration/

And try to send data through Use Custom HTTP Headers but failed.

2. I tried to use Machform->settings->send data to another website to do integration with salesforce. But as I said I am failed.

3. I asked a question to forum also, But they din't replied.

What I have succeeded is only create a form with input-text+radio button+textarea and save its value to machfrom itself as well as send all data to admin+registered user in mail.

Note: there is no code data so I am unable to give any code.

After searching and working on it i got pretty simple solution (step-by-step given below):-

  1. Go to your salesforce account->Setup

  2. In the left side bar click Customize->leads->Web-to-lead.

  3. Now click on "Create-Web-To-Lead-Form" button.Now you will see this window:- https://prnt.sc/gtz6xw

enter image description here

  1. Now generate the form:- https://prnt.sc/gtz8dc

enter image description here

  1. when form generated leave that tab untouched.Don't click on any button there.:- https://prnt.sc/gv18as

enter image description here

  1. We did this much only to get the unique id+url+fields name attribute through which we are going to save machForm form data to salesforce.

  2. Now time to go to MachForm account and under you form click edit.:-https://prnt.sc/gtzapt

enter image description here

  1. Now we have to add a hidden field with the unique identifier which we got from the "Web-To-Lead-Form":- https://prnt.sc/gv18rz

enter image description here

  1. Add hidden filed into the form with the same name and value what you got from "Web-To-Lead-Form" and then save the form and click on "I am finished" button on the pop-up:- https://prnt.sc/gv19v7 And https://prnt.sc/gv1ab0

enter image description here

enter image description here

  1. Now click on the notification button of that form:- https://prnt.sc/gtze8a

enter image description here

  1. Now check the chec-box of "Send Form Data to Another Website":- https://prnt.sc/gv1awp

enter image description here

  1. You wiil see a box is open under it. Now we will add things one-by-one

  2. Inside Website URL add the url you get from "Web-To-Lead-Form" :- https://prnt.sc/gv1bi7

enter image description here

  1. Skip other things and now come to Parameters. Now the name filed need to be matxh to corresponding names of "Web-To-Lead-Form" so that it can match.

    First Name field== first_name. Last Name field == last_name.

  2. Now to get machform data for corresponding value click on merge tag and select particular tag. Now you will get it's value, copy paste it to the corresponding column.:- https://prnt.sc/gtzws2

enter image description here

  1. After mapping all form fileds values Now click on save.:-https://prnt.sc/gv1cqd

enter image description here

  1. Now just simply close your tab in which you have "Web-to-lead" form.Now we don't have any use of that.Remind that You have to close it not to save it

Now you can test your form and you will see that it's data save to "Leads section" inside "salesforce".

Thanks

I've never even heard about that Machform app so take my answer with a grain of salt.

  1. See if there are any ready made integrations. Searching Salesforce AppExchange doesn't bring any results but maybe there's a Machform plugin for that?
  2. Typically sending data to Salesforce requires at least 2 steps (doesn't matter which API is used):

    • send username & password, get Session Id back (and often new endpoint to which subsequent requests should be directed)
    • use this session id to insert records to Salesforce

    So unless your app has some options for multi-step forms you'll have hard time without coded solution. In a pinch the user could authenticate in SF earlier and copy-paste his session id but that's poor usability.

  3. If you have a Salesforce Admin handy, he/she could create a Web-to-Lead solution in SF. it's pure configuration and at the end you're left with piece of HTML code generated by SF that you can inject to any website you wish. So you could have a look at this form, see what data it passes, to what end URL and reuse it.

    • if you go through this route make sure to not expose anywhere on the web your Salesforce Organization ID (one of hidden params in the generated form which global SF uses to route the data). You might start getting some spam if you leave it in wide open internet just like that.
    • I think ince you enable web-to-lead you can't turn it off so it'd definitely be something you want to play with first in a Developer Edition or sandbox before doing it in production.
  4. If you have Salesforce Developer handy, he/she could build a "Site" (piece of Salesforce exposed to wide open web without requiring a SF user account). Or "inbound email handler" class and then your app could be sending emails to special mailbox, with form data in message's body..
  5. Can it work other way around? Could Salesforce pull data from Machform, let's say every 5 minutes? The app would have to be available on the net (not in your company's intranet for example... unless you'll start the dance with security team about opening ports on firewalls, reverse proxies, demilitarized zones and all that stuff). Here a lot depends on how Machform can be exposed for integration. SOAP (WSDL)? REST?
  6. Maybe you could have another database to which Machform can easily write in turn some other app would be pushing data to SF...

At least now you have some keywords you can search for in detail ;)