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
CloudConversionCloudConversion 

Unauthenticated Apex REST?

Force.com gurus,

 

Are there any plans to support unauthenticated Apex REST?  We really need the ability to have outside systems post data to our customer's Salesforce accounts and those systems don't have the capability to authenticate.  So, we're basically looking for a servlet type listener.


Thanks,
Jon

 

p.s. -- we've looked at using Sites for this, but there's currently no way to access to the HTTP body of the request.

CloudConversionCloudConversion

Any ideas here??

watrowatro

Hi there, 

 

You should be able to do this with sites, any parameters you send to the page you should be able to get by doing an apexpage.getParameter().get().

 

I've done similar things in the past this way, let me know if you need more info or something more specific.

 

Cheers, 

 

Nico

 

 

 

 

 

 

ForceMantis (Amit Jain)ForceMantis (Amit Jain)
As suggested by Nico(watro) you can do it throught force.com sites. There is a nice blog post (http://www.wadewegner.com/2013/03/creating-anonymous-rest-apis-with-salesforce-com/" target="_blank) by wade wegner about this. I have tried it myself and it works.