function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Joel MalloJoel Mallo 

Http Post

Hi There, 

I have a lead provider who wants to post data to me on leads via HTTP Post, however, I don't know the easiest way of doing this. I'm not a develper myself and don't know the easiest way of doing this.  I do have all the posting variables from the lead provider and have those fields created in my salesforce account, however, I don't know the easiest way of creating the posting url to provide him and test delivery. Any help will be much appreciated. 
Naveen Rahul 3Naveen Rahul 3
Hi Joel,

as of now,you need to use API for posting them,you would need to create an application that would communicate with salesforce, either you can use java or php/.net for salesforce - client machine communication.

Thanks
D Naveen


Scott McClungScott McClung
I'm guessing that your lead provider wants to use http post because they have their own web form that they're using.  If that's the case, you might want to look at the Salesforce web-to-lead functionality.  It allows you to collect lead information from a web form and the forms submits that data to Salesforce with a http post call.

As long as your lead provider's form fields are correctly named to match the SF field names, they should be able to point it to the web-to-lead url.  Just make sure they also include the hidden input field shown in the example below with the name="oid" and the value set to your Salesforce Org ID so SF knows which org to create the lead in.
<form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">
<input type=hidden name="oid" value="XXXXXXXXXXXXXXX">
<label for="first_name">First Name</label><input  id="first_name" maxlength="40" name="first_name" size="20" type="text" /><br>
<label for="last_name">Last Name</label><input  id="last_name" maxlength="80" name="last_name" size="20" type="text" /><br>
<label for="email">Email</label><input  id="email" maxlength="80" name="email" size="20" type="text" /><br>
<label for="company">Company</label><input  id="company" maxlength="40" name="company" size="20" type="text" /><br>
<label for="city">City</label><input  id="city" maxlength="40" name="city" size="20" type="text" /><br>
<label for="state">State/Province</label><input  id="state" maxlength="20" name="state" size="20" type="text" /><br>
<input type="submit" name="submit">
</form>