How should you iterate over multiple records in X++?

You are writing an X++ method. You need to perform the same logic for multiple records in the database. How should you iterate over multiple records in X++?A . Declare a table buffer variable, and then write a "while select" statement to iterate through each record.B . Declare a shared...

May 5, 2020 No Comments READ MORE +

Which two statements about the sr and textFromFile variables are true?

You are an Independent Software Vendor (ISV) developer, and you are reviewing the code in a solution. During the code review, you see the following: using (var sr = new System.IO.StreamReader(_inputFilename)) { var textFromFile = sr.ReadToEnd(); this.processFileDate(textFromFile); } Which two statements about the sr and textFromFile variables are true? Each...

May 5, 2020 No Comments READ MORE +

Which type of exception should you handle?

You are planning to use X++ to develop a solution that will update multiple records. You need to ensure that if the solution attempts to modify records that are currently being edited by a user, the operation will be retried. Which type of exception should you handle?A . UpdateConflictB ....

May 4, 2020 No Comments READ MORE +

Which statement will complete the method?

You are writing a method to update the Customer reference field on a Sales order table record. You begin by writing the following code: class ExampleClass { /// <summary> /// Update the Customer reference field on the Sales orders table. /// </summary> /// <param name = "_salesId"> /// Sales order...

March 18, 2019 No Comments READ MORE +

Which best practice should you follow?

You are extending primitive data types to make your code more readable, and you need to assign Extended Data Types (EDT) properties. Which best practice should you follow?A . Do not leave the display length and style an Auto.B . Ensure that the HelpText property is the same as the...

March 16, 2019 No Comments READ MORE +

the PurchOrderActivationExtended class?

You have previously written a PurchOrderActivation class with the following logic: class PurchOrderActivation { private static PurchOrderActivation construct() { return new PurchOrderActivation(); } ... } You need to instantiate PurchOrderActivation from a new class named PurchOrderActivationExtended, which extends PurchOrderActivation. What are two possible ways to instantiate the PurchOrderActivation class in...

March 14, 2019 No Comments READ MORE +

Which type should you tell the client?

You are reviewing the basic set of primitive data types in Microsoft Dynamics 365 for Finance and Operations with a client. The client wants to know the best data type to use for a set of literals, such as states of nature or key reporting structures. Which type should you...

March 13, 2019 No Comments READ MORE +

How should you reference this new label in the Label property of an artifact?

You are an Independent Software Vendor (ISV) developer working in the "ABCModule" module in an existing solution. You create a new label in the XYZ-en-US.label.txt file with a Label ID of "LabelText", a Label of "Text for the Label", and a Description of "ABC". How should you reference this new...

February 28, 2019 No Comments READ MORE +

Which two statements about the sr and textFromFile variables are true?

You are an Independent Software Vendor (ISV) developer, and you are reviewing the code in a solution. During the code review, you see the following: using (var sr = new System.IO.StreamReader(_inputFilename)) { var textFromFile = sr.ReadToEnd(); this.processFileDate(textFromFile); } Which two statements about the sr and textFromFile variables are true? Each...

February 24, 2019 No Comments READ MORE +

What is the output of the X++ code?

You are developing a solution to insert and update records in a table named Table1, and you need to ensure that you handle the possible exceptions. Table1 does not have any unique indexes that include the ID or the Description fields. The table has the following structure: What is the...

February 21, 2019 No Comments READ MORE +