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
Kam.ax1015Kam.ax1015 

Apex REST not enabled

Hello,

 

Looks like I do have REST features enabled. Rest explorer works and I see API v22.

 

But I am unable to create REST based controller ...

 

Error: Compile Error: Apex REST is currently in pilot and is not enabled for your organization at line 2 column 14

 

@RestResource(urlMapping='/Account/*') global class MyRestResource {

}

 

 

Any help will be appreciated.

 

Thanks,

Kam

 

 

 

dkadordkador

The core REST API and Apex REST webservices are different features.  You don't have access to the pilot for apex REST webservices.

 

We're doing a limited pilot at first.  For access, please e-mail atoussaint AT salesforce DOT com.

 

Kam.ax1015Kam.ax1015

Thank you so much. I sent the email requesting the feature.

 

Kam