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
sushmaiyer2@gmail.comsushmaiyer2@gmail.com 

Application Practice from App Exchange

Hi,

      I am Creating an Application called Survey Force from App Exchange.In that i am trying to implement their same Controller called :- GSurveysController but still getting the following Error.

 

Error :-

 

Error: Compile Error: Declarations can only have one scope at line 191 column 35  

 

Part Of the Code and line in which i am getting Error :-

 

public static webservice String deleteSurvey(String deleteId)

{
Survey__c s= [Select Id, Name from Survey__c where Id =:deleteId];
delete s;

return 'true';
}

 

Please help...

Best Answer chosen by Admin (Salesforce Developers) 
sushmaiyer2@gmail.comsushmaiyer2@gmail.com
Hi, The Issue got solved there was some Version Settings Issue.

All Answers

kiranmutturukiranmutturu
why r u trying to create a service method ? may i see the complete class once?
sushmaiyer2@gmail.comsushmaiyer2@gmail.com
Hi, The Issue got solved there was some Version Settings Issue.
This was selected as the best answer