Questions tagged [callable]
The callable tag has no usage guidance.
6
questions
0
votes
0
answers
29
views
Testing a Callable via ApexMocks [duplicate]
I have a trigger that calls a Callable class when a status is changed. I want to verify that the call function is called with the correct argument and so I tried mocking Callable using fflib_ApexMocks....
0
votes
1
answer
129
views
Callable Interface: TypeName throws nullpointer Exception calling external Package Content
Implementing Callable Interface as described from Salesforce:
global with sharing class XXX_Callable implements Callable {
// Dispatch actual methods
global Object call(String action, Map<...
3
votes
0
answers
345
views
Callable : Can we call class methods from different managed package without using namespace?
CALLABLE
Enables developers to use a common interface to build loosely coupled integrations between Apex classes or triggers, even for code in separate packages.
I have created an LWC component and ...
2
votes
2
answers
491
views
Do callable classes still need to be marked as global to access them outside of managed packages?
I created a callable class for a managed packaged but I am unable to actually get an instance while calling it from outside the package.
In execute anonymous:
Type.forName returns null
Callable ...
5
votes
1
answer
4k
views
How to invoke Apex Class dynamically using Callable Interface?
Recently I was tasked with a project to dynamically call a class from a packaged trigger. This will allow clients to hook their custom logic instead of what is supplied as part of the package.
I ...
2
votes
0
answers
869
views
Dynamic class invocation in trigger - Callable Interface
Recently I was tasked with a project to dynamically call a class from a packaged trigger. This will also clients to hook into their custom logic instead of what is supplied as part of the package.
I ...