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
yajivyajiv 

Accessing Custom Objects anonymously through a REST or Web service

Hi,

 

I created a custom Object and Exposed it via  a Web service. I would like to access the data from a client using jQuery. Is it possible to access it anonymously without having to log into Salesforce ?

 

TIA,

V

aalbertaalbert

No, the web services require authentication. What is your use case? 

yajivyajiv

Thanks for your reply. I am trying to create a simple Sites page with anonymous access on our website and let anonymous users submit data.I want to then pull up the data from the Custom Object and display it in a rich Ui using jQuery on the client side(a REST service is what I have in mind).

aalbertaalbert

You can do this with Force.com Sites. The Visualforce pages would be the UI of your Force.com Site and that can easily include jQuery (or equivalent). And you can read/write data to a custom object through the Apex Controller. Force.com sites (since its anonymous) does not have API access but you do have access via the apex controllers.