Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Exam PDII All Questions
Exam PDII All Questions

View all questions & answers for the PDII exam

Salesforce Developers PDII Question # 19 Topic 3 Discussion

PDII Exam Topic 3 Question 19 Discussion:
Question #: 19
Topic #: 3

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.

PDII Question 19

The callousUtil.makeRestCallout fails with a "You have uncommitted work pending. Please commit or rollback before calling cut’ error.

What should be done to address the problem?


A.

Change the callousUtil makeRestCallout to an @InvocsblsMethod method.


B.

Remove the Database. setSavepoint and Database. rollback.


C.

Change the CallousUtill .makeRestCallout to an @future method.


Get Premium PDII Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.