• Dominik Bleimann
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi,

I'm trying to access an already defined External Service in an Apex Class, but ExternalService is not available.
In a Flow the ExternalService can be used and is working fine.

I'm working in a Salesforce Playground created on Trailhead.
 
public with sharing class CallExternalService {
    public void callExternalService{
        ExternalService.MyExternalService service  = new ExternalService.MyExternalService();
    }
}

 
Hi,

I'm trying to access an already defined External Service in an Apex Class, but ExternalService is not available.
In a Flow the ExternalService can be used and is working fine.

I'm working in a Salesforce Playground created on Trailhead.
 
public with sharing class CallExternalService {
    public void callExternalService{
        ExternalService.MyExternalService service  = new ExternalService.MyExternalService();
    }
}

 
We registered an external service, the Apex classes are generated, we can see them in the Apex Classes list under Dynamic classes, but we could not figure out, how to access the classes from VS Code or from the developer console. Is there a (hidden) configuration or other setting, which we did not see and that is not discribed anywhere?