A company has code to update a Request and Request Lines and make a callout to their external ERP system's REST endpoint with the updated records.
The CalloutUtil.makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error.
What should be done to address the problem?
rufusroffie
Highly Voted 1 year, 10 months agovancika
Most Recent 3 months, 2 weeks agochrisx01
1 year, 9 months agorhea90
1 year, 11 months agoShinchan9
10 months, 1 week agokarappo
1 year, 11 months agosanto_aj
1 year, 7 months agoSappaul
3 years, 7 months ago