function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Can someone help resolve this?
/* test*/@RestResource(urlMapping='/Account/*')global with sharing class AccountRestSvc {
@HttpGet global static Account doGet (RestRequest req, RestResponse res) { return [select id, name from account limit 1]; }
}
RestRequest is part of the Apex Rest API. A couple of things to check
(1) Is your org enabled for Apex Rest - I believe this is still in pilot.
(2) Is your code at the correct API level - I'd expect it to need API 22 as this was introduced in summer 11.
The error says your class "RestRequest" is invalid now and you need to recompile it, means edit and save it again. Then this error will be resolved.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
Working with Support to enable this option.
RestRequest is part of the Apex Rest API. A couple of things to check
(1) Is your org enabled for Apex Rest - I believe this is still in pilot.
(2) Is your code at the correct API level - I'd expect it to need API 22 as this was introduced in summer 11.
All Answers
The error says your class "RestRequest" is invalid now and you need to recompile it, means edit and save it again. Then this error will be resolved.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
RestRequest is part of the Apex Rest API. A couple of things to check
(1) Is your org enabled for Apex Rest - I believe this is still in pilot.
(2) Is your code at the correct API level - I'd expect it to need API 22 as this was introduced in summer 11.
Working with Support to enable this option.
Thanks