Questions tagged [callable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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
46 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<...
2 votes
0 answers
141 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
1 answer
204 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 ...
4 votes
1 answer
2k 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 ...
1 vote
0 answers
541 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 ...