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
hsupriyahsupriya 

Using Databse.com with Salesforce Sites

My salesforce site has a form with the fields Name, Email, Address and Date(the fields from a custom object). Every time, the record is saved I want it to be saved in Database.com, bypassing the salesforce org. I need help on this topic. Thanks in Advance

Best Answer chosen by Admin (Salesforce Developers) 
hsupriyahsupriya

Hello Bob,

 

Thanks for the reply. I did it this way-

1) Authenticated salesforce or against Databse.com using OAuth and passing the client_id, client_secret, user name and password

2) Got the access token in response and used that access token in all consequent requests

 

It works perfectly. 

All Answers

bob_buzzardbob_buzzard

You'll need a controller on the page that talks to database.com via one of its APIs, or some javascript to do that on the client side.

hsupriyahsupriya

Hello Bob,

 

Thanks for the reply. I did it this way-

1) Authenticated salesforce or against Databse.com using OAuth and passing the client_id, client_secret, user name and password

2) Got the access token in response and used that access token in all consequent requests

 

It works perfectly. 

This was selected as the best answer