Microsoft
MB6-894 · Question #53
You are writing an X++ method to delete a SalesLine record. You need to ensure that the call to the delete() method succeeds. Which two criteria must be met to accomplish this goal? Each correct…
The correct answer is C. The delete() method must be called inside a transaction by using the ttsbegin and ttscommit D. The record to delete must be locked first by calling the selectLocked() method. See the full explanation below for the reasoning.
Question
You are writing an X++ method to delete a SalesLine record. You need to ensure that the call to the delete() method succeeds. Which two criteria must be met to accomplish this goal? Each correct answer presents part of the solution.
Options
- AThe record to delete must have been read from the database using the forupdate keyword in a
- BThe dispose() method must be called after the delete() method is called.
- CThe delete() method must be called inside a transaction by using the ttsbegin and ttscommit
- DThe record to delete must be locked first by calling the selectLocked() method.
How the community answered
(43 responses)- A7% (3)
- B16% (7)
- C77% (33)
Community Discussion
No community discussion yet for this question.