Pending Operation

You can manage pending operations using these methods:

Note: Use the SubmitPendingOperations and CancelPendingOperations methods only when there are multiple pending entities on the same MBO type. Otherwise, use the MBO instance’s SubmitPending or CancelPending methods, which are more efficient if the MBO instance is already available in memory.
Customer customer = Customer.findById(101);
if (errorHappened) {
	customer.cancelPending();
}
else {
	customer.submitPending();
}