Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
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.

 
1 answer
  1. Oct 28, 2015, 9:54 PM
    Wim,

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