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
Arjun y 7Arjun y 7 

How to check in salesforce that myservice has been called from external system

Hi All,

I have developed one small rest api service. External system is calling daily to that service.

My query is how can i check that callout time in salesforce when ever they are calling myservice from external system?
 
@RestResource(urlMapping='/myservice')
global class MyService {
    @HttpGet
    global static String doGet() {
        String name = RestContext.request.params.get('name');
        return 'Hello '+name;
    }