Microsoft
MB-500 · Question #343
You use Dynamics 365 Finance. You loop through a list of vendor records filtered by the vendor group number. You want to store the vendor account number in a container that will be used later. You nee
Sign in or unlock MB-500 to reveal the answer and full explanation for question #343. The question stem and answer options stay visible for context.
Develop business logic
Question
You use Dynamics 365 Finance. You loop through a list of vendor records filtered by the vendor group number. You want to store the vendor account number in a container that will be used later. You need to save the ID in a container. Which code segment should you use? A. B. C. D. E.
Exhibits
Options
- AVendTable vendTable; container vendorAccounts; int currentPosition = 0; while select vendTable where vendTable.VendGroup == '10' { vendorAccounts = conIns(vendorAccounts, currentPosition, vendTable.AccountNum); currentPosition++; }
- BVendTable vendTable; container vendorAccounts; int currentPosition = 1; while select vendTable where vendTable.VendGroup == '10' { conIns(vendorAccounts, currentPosition, vendTable.AccountNum); currentPosition++; }
- CVendTable vendTable; container vendorAccounts; int currentPosition = 1; while select vendTable where vendTable.VendGroup == '10' { vendorAccounts = conIns(vendorAccounts, currentPosition, vendTable.AccountNum); currentPosition++; }
- DVendTable vendTable; container vendorAccounts; int currentPosition = 1; while select vendTable where vendTable.VendGroup == '10' { vendorAccounts = conIns(vendorAccounts, currentPosition, vendTable.AccountNum); }
- EVendTable vendTable; container vendorAccounts; int currentPosition = 1; while select vendTable where vendTable.VendGroup == '10' { vendorAccounts = conPeek(vendorAccounts, currentPosition, vendTable.AccountNum); currentPosition++; }
Unlock MB-500 to see the answer
You've previewed enough free MB-500 questions. Unlock MB-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#X++ containers#conIns#while select#data structures




