QuestionQ114

Develop integrations

A company imports data from files. The following code is created to import the files. (Line numbers are included for reference only.)

Question Image

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Yes or No
StatementsYesNo
If an error occurs when one of the contacts is created, processing will continue, and the remainder of the contacts will be created.
If you add the code ,ContinueOnError = true at line 5, bad requests will not roll back the transaction.
Requests are processed in the sequence added to transactionrequest.
Lines 19-23 are required for the contacts to be created.
Explanation

ExecuteTransactionRequest is atomic: if one request fails, all completed changes are rolled back. Its requests execute in collection order. ContinueOnError applies to ExecuteMultipleRequest, whereas ExecuteTransactionRequest has no such setting. Enumerating the response collection only displays returned IDs; execution on the service call creates the records.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!