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, 8 months agochrisx01
Most Recent 1 year, 7 months agorhea90
1 year, 9 months agoShinchan9
8 months, 1 week agokarappo
1 year, 9 months agosanto_aj
1 year, 5 months agoSappaul
3 years, 5 months ago