QuestionQ132

Develop and test code

You use Dynamics 365 Finance.

You iterate through a list of vendor records filtered by vendor group number. You want to store each vendor account number in a container for later use.

You need to save the ID in a container.

Which code segment should you use?

  • A
  • B
  • C
  • D
  • E
Explanation

In X++, conIns inserts an element and returns a new container, so the returned value must be assigned to vendorAccounts. Container positions are one-based; initializing the position to 1 and incrementing it after each insertion stores each vendor account number in sequence. X++ container runtime functions

Learn more

Community Discussion

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