Microsoft Dynamics 365 Finance and Operations Apps Developer
Exam Details
Exam Code
:MB-500
Exam Name
:Microsoft Dynamics 365 Finance and Operations Apps Developer
Certification
:Microsoft Certifications
Vendor
:Microsoft
Total Questions
:323 Q&As
Last Updated
:Mar 28, 2025
Microsoft Microsoft Certifications MB-500 Questions & Answers
Question 41:
A company uses Dynamics 365 Supply Chain Management.
You need to list all classes in the Application Suite model that contain a cross-company query.
Which query string should you use?
A. type:class, method name=run code:"crosscompany" model:"Application Suite"
B. type:class, table code:"crosscompany" model:"Application Suite"
C. type:class code:"crosscompany” model:"Application Suite"
D. type:class, method name=insert code:"crosscompany" model:"Application Suite"
Correct Answer: A
The Query class embodies the structure of a query.
Note 1: Query class Objects of this kind are not used to fetch records from the database. Instead, use a QueryRun object that can be assigned a query object. The dynamic behavior of a query is defined by the QueryRun class. The static behavior is defined by the Query class. Queries contain one or more data sources that correspond to tables in the database. The data sources are specified by using QueryBuildDataSource objects. This class lets you create, read, update, and delete X++ code and metadata.
The following example creates a query object that is used to create a QueryRun object.
X++
{ Query q = new Query (QueryStr(Cust)); // Use the query to build a queryRun object. QueryRun qr = new QueryRun (q); // Traverse some records. while (qr.next()) {
// ... } }
Note 2:
You can create a cross-company query by using X++ code. There are two ways to do this:
You are developing a model extension for Dynamics 365 Finance.
You must create a model extension that extends objects from the Application suite package.
You need to create and configure a new model for the extension.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. Assign a model to the VAR layer.
B. Create a new model and add a reference to the Application Suite package.
C. Create an extension class that references a class that exists in the Application Suite.
D. Create a new model that is part of an existing Application Suite package.
Correct Answer: BC
B: Step 1: Extension models and packages
You can create a model that contains only new model elements, new code, or extensions. This model is compiled into its own separate assembly. These assemblies, along with related metadata and runtime artifacts can be packaged (as a
deployable package file) and deployed on runtime sandbox or production environment. To create an extension model, go through the Create model wizard and select Create new package on the second step.
C: Step 2: Code extensions
You can extend source code in 3 ways:
By subscribing to events (framework events and delegates)
By writing plug-ins.
By creating class extensions (aka class Augmentation)
Class Extensions
Class extensions enable you to augment a class by adding methods and variables to existing classes, tables and forms.
You must create a process that updates the following:
1.
A single record for customer number A0001 in the customer table.
2.
The value of its customer group to 10. You need to implement the process. Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Correct Answer: D
Update method.
The update method updates the current record with the contents of the buffer. It also updates the appropriate system fields. The optional where clause specifies a condition that the update method tests as it processes each row of the table.
Only those rows that test true against the condition are updated with the new values.
The following example selects the CustTable table for update. Only records where the value of the AccountNum field equals 4000 are updated. Because there is no call to next, and this example doesn't use a select while statement, only one
record is updated. The value of the CreditMax field is changed to 5000.
This check ensures that no record can be updated or deleted if the record has not first been selected for update. A record can be selected for update, either by using the forUpdate keyword in the select statement, or by using the
selectForUpdate method on tables.
ttsLevel Checking
This check ensures that no record can be updated or deleted except from within the same transaction scope as it was selected for update. Integrity is ensured by using the following statements:
ttsBegin: marks the beginning of a transaction. This ensures data integrity, and guarantees that all updates performed until the transaction ends (by ttsCommit or ttsAbort) are consistent (all or none).
ttsCommit: marks the successful end of a transaction. This ends and commits a transaction. MorphX guarantees that a committed transaction will be performed according to intentions.
You create an extension for the InventTable table.
Which two field properties can you modify in the extension?
Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
A. Allow Edit
B. Extended Data Type
C. Visible
D. Label
Correct Answer: AD
Add fields to tables through extension To add a new field to an existing table, you must first create a table extension. For example, to add a field that holds the radius of the released product, you must create an extension for the InventTable table in your model
You can now add the field to the extension, just as you would add a field to a table in your model. You can use two methods:
1.
In the designer, right-click the Fields node, select New, and then select the type of field to add.
2.
Drag an existing Extended Data Type or Base Enumeration from your project onto the Fields node.
You create a new interface class in Dynamics 365 Finance. The class has two methods.
You need to create a valid interface class.
Which two actions should you perform? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
A. Declare the class and all its methods as public.
B. Implement only some methods in the classes that implement the interface.
C. Implement the class as abstract.
D. Declare all methods in the classes that implement the interface.
Correct Answer: AD
A: An interface specifies a set of public instance methods. An interface defines and enforces similarities between unrelated classes without having to derive one class from the other.
All interfaces are public, even if you don't explicitly add the public keyword in front of the interface keyword in interface declaration. The methods on an interface are also public. Explicit inclusion of the keyword public is optional.
D: When you add the implements keyword on a class declaration, the class must declare and define the methods that are specified by the interface. A class declaration can implement multiple interfaces. List the interfaces after the single occurrence of the implements keyword, and separate the interface names by using commas.
All interface methods that a class implements must be explicitly declared as public. A class that implements an interface must also be declared as public. An interface can extend another interface by using the extends keyword, however, an interface can't extend more than one interface.
It is customary to preface the name of an interface with I.
You implement a risk rating for vendors. The risk rating is on the Vendor form.
The rating is determined by a vendor's on-time delivery performance as well as their credit rating.
The risk rating consists of the following values:
1 = Good
2 = Medium
3 = Risky
The company plans to implement purchase requisitions. The company wants to prevent purchase orders from being confirmed when a vendor's risk rating is set to Risky.
You need to implement the functionality.
What should you do?
A. Create a method for the OnModified event of the vendor account.
B. Create a new business event.
C. Create a method for the OnInitializing event of the form.
D. Create a Chain of Command (CoC) class extension.
Correct Answer: D
Class extension - Method wrapping and Chain of Command The functionality for class extension, or class augmentation, has been improved. You can now wrap logic around methods that are defined in the base class that you're augmenting. You can extend the logic of public and protected methods without having to use event handlers. When you wrap a method, you can also access public and protected methods, and variables of the base class. In this way, you can start transactions and easily manage state variables that are associated with your class.
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your MB-500 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.