While testing the c...
 
Notifications
Clear all

While testing the code, the developer receives the following error message: System.CalloutException : You have uncommitted work pending What should the developer do?

1 Posts
1 Users
0 Likes
164 Views
(@whellerrashad)
Noble Member
Joined: 2 years ago
Posts: 729
Topic starter  

A developer writes the following code:

While testing the code, the developer receives the following error message: System.CalloutException : You have uncommitted work pending What should the developer do? (Choose two.)

  • A . Use the asyncSend() method of the HTTP class to send the request in async context
  • B . Ensure all callouts are completed prior to executing DML statements
  • C . Move the web service callout into an ©future method
  • D . Use Database.insert (order, true) to immediately commit any database changes

Show Answer Hide Answer

Suggested Answer: B,C

   
Quote

Latest Salesforce PDII Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: