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
Wim van BeekWim van Beek 

External object, Callback does not work correct in Testclass

Working with external objects I am facing issues in a testclass.
1. Inserting a (list of) record requires to use of a call like this.
List<Database.SaveResult> results = Database.insertAsync(theNewRecords, new CallbackClass());
In this CallBackClass a "override public void processSave(Database.SaveResult saveResult)" will provide assistance to process the newly formed id of this insert.

Works fine in real-live. How can I test-run this processSave method? The test.stoptest() does not do the trick.

James LoghryJames Loghry

Using the code format button (< >), can you please post your test code (and the error you're receiving) so we can help investigate?