exam questions

Exam MB6-894 All Questions

View all questions & answers for the MB6-894 exam

Exam MB6-894 topic 1 question 18 discussion

Actual exam question from Microsoft's MB6-894
Question #: 18
Topic #: 1
[All MB6-894 Questions]

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.

  • A. The record to delete must have been read from the database using the forupdate keyword in a select statement.
  • B. The dispose() method must be called after the delete() method is called.
  • C. The delete() method must be called inside a transaction by using the ttsbegin and ttscommit statements.
  • D. The dodelete() method must be used in this case in order to validate the record deletion.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️
Reference:
https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/dev-ref/xpp-data-query#delete-method

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Sophs
5 years, 1 month ago
D SelectLocked is not used anymore, this cannot be correct, except in Legacy code.
upvoted 1 times
tsimbah
4 years, 9 months ago
I think A is correct
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...