Microsoft Dynamics 365: Finance and Operations Apps Developer — Question 59
A company implements Dynamics 365 Finance and Dynamics 365 Supply Chain Management. The company plans to perform a sales history analysis on existing customers, including their sales history and purchases.
You are creating an extension to create a sales history table that will run after the close of each period. The historical information must include customer information, date of purchase, and items that are purchased including product descriptions.
You need to ensure that the process for retrieving historical information minimizes database calls.
Which method should you use?
Answer options
- A. RecordInsertList
- B. RecordSortedList
- C. Insert_recordset
- D. doInsert
Correct answer: A
Explanation
The correct choice, RecordInsertList, is designed to minimize database calls by allowing bulk insert operations, which is efficient for creating records in a single transaction. Other options, like Insert_recordset and doInsert, do not provide the same level of optimization for multiple inserts, while RecordSortedList is not specifically tailored for this type of batch processing.