Timeline for Test class get error System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2018 at 12:10 | comment | added | Nilkamal Gotarne | ok thank u ill check and if it solves my problem ill get back to you | |
May 23, 2018 at 12:09 | vote | accept | Nilkamal Gotarne | ||
May 24, 2018 at 3:04 | |||||
May 23, 2018 at 12:08 | comment | added | David Reed | Your class isn't global. I've added a link to the documentation on Queueable Apex to my answer. There is also a good Trailhead on asynchronous Apex that I recommend if you aren't familiar with this area. | |
May 23, 2018 at 12:07 | history | edited | David Reed | CC BY-SA 4.0 |
added 100 characters in body
|
May 23, 2018 at 11:59 | comment | added | Nilkamal Gotarne | future is not allowed on global class or method and i cannot reorder because it is in the exact sequence of execution. how can i use queable apex method ? | |
May 23, 2018 at 11:52 | comment | added | David Reed | I'm not sure how to explain it more than than. What clarification are you looking for? | |
May 23, 2018 at 11:49 | comment | added | Nilkamal Gotarne | plz explain how can i reorder these pieces of functionality or break the callout into a separate transaction using an @future or Queueable Apex method. I am new to salesforce. | |
May 23, 2018 at 11:45 | history | answered | David Reed | CC BY-SA 4.0 |