3
votes

I am a newbie to Salesforce, currently developing an application which will be used by our clients. One feature of the application is, it should receive data from our remote server for each client and update/insert a record in Salesforce for that client. I am not sure how to go about doing this.

I looked into Salesforce REST API (http://www.salesforce.com/us/developer/docs/api_rest/api_rest.pdf) to POST data into Salesforce, but that required to provide client id, customer key and user id/password of Salesforce, which I think we will not able to get from our clients (?). Can anyone tell me how to go about achieving this?

Thanks in advance.

2
How did you finally implement this? I need to the same thing but don't know where to start and how to go about this. - who-aditya-nawandar
@stylojack_10 please see my answer below. Things might have been changed now, so, please check salesforce documentation if there are any other easier approach. - Chandra
I did read your answer but I am really not very sure what it means. What's VFS? - who-aditya-nawandar
What I am looking for is being able to post the data without having to create a form or anything on Salesforce. I already have a Google form implemented in my website. What I want is any user who fills out the form should be shown as a lead in my Salesforce. - who-aditya-nawandar
VFS = Visualforce Page (extension of the file being .vfs). The solution I provided will work with exposing VFS page with a public URL and then u can post to that URL. This VFS page just has a controller attached to it and in this controller u read all the parameters passed from your server and process accordingly. Go to the twilio example link in my answer, which explains this approach. Hope this helps. - Chandra

2 Answers

2
votes

I did a bit more research on this (in Google). Apparently what many are doing is create an Apex Controller and attach it to a VFS page. Then what each client has to do in their salesforce instance is, create a public site and expose this VFS page. So, its easy to post to this URL. Ofcourse, we need to handle URL Tampering check, which is separate thing. An example of this can be found here -> http://www.clintslee.com/2011/02/08/salesforce-twilio-receiving-incoming-texts/

1
votes