• Satya sai sudhir
  • NEWBIE
  • 20 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 3
    Replies
I have created a class called "SCHEDULABLE"  and added the following code. How do I proceed now? When I checked the Steup>Scheduledjobs it is empty!!. 

global class Schedulable {
    
global void execute(SchedulableContext sc){}
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();

}
1) @RestResource(urlMapping='/trippleInteger/')
 2)  global class MyService {
   3)  @HttpGet
   4)  global static Integer trippleIt() {
    5)     String someNumber = RestContext.request.params.get('yourInteger');
   6)      return someNumber *3;
    }
}
@RestResource(urlMapping='/trippleInteger')
  global class MyService {
    @HttpGet
    global static Integer trippleIt() {
        String someNumber = RestContext.request.params.get('yourInteger');
        return someNumber *3;
    }
}
How to create a REST end point in salesforce and make it public and it should accept an Integer as argument/parameter and triple it and send the response.
1) @RestResource(urlMapping='/trippleInteger/')
 2)  global class MyService {
   3)  @HttpGet
   4)  global static Integer trippleIt() {
    5)     String someNumber = RestContext.request.params.get('yourInteger');
   6)      return someNumber *3;
    }
}