Free MB-500 Exam Braindumps (page: 33)

Page 33 of 66
View Related Case Study

DRAG DROP (Drag and Drop is not supported)
A company uses Dynamics 365 Finance.
You create a new extension for a standard table.
You need to add a new method in the extension.

Which five actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Step 1: Create a new project in Visual Studio.

Step 2: Add a new class to the Visual Studio project with the _Extension suffix.
You first create a new class in the extension model.
This class will augment the table, and enable access to the table's fields and methods in a manner that is easy to read and understand. It's important that you choose the correct name for your augmentation class.

Step 3: Set the class as final.

There are a few rules for augmentation classes:

They must be final.
They must be suffixed by _Extension.
They must be decorated with the [ExtensionOf()] attribute.

Step 4: Decorate the class with the [ExtensionOf(tableStr(TableName))] attribute.

Example:
[ExtensionOf(tableStr(InventTable))]
final class InventTableMy_Extension
{
public void myDefaultInventLocationId()
{
// This would have partner specific logic to initialize the new field.
this.MyInventLocationId = this.inventLocationId();
}
}

Step 5: Add a new method to the class and implement it.
You can now add new methods to the augmentation class. These methods will then appear in IntelliSense for variables of the InventTable type, just as if they were defined directly on the table. This behavior applies to both static methods and instance methods.


Reference:

https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/add-method-table



View Related Case Study

You are a Dynamics 365 Finance developer.
You need to create an extension class.
Which action should you perform?

  1. Mark the class as final.
  2. Add the class buffer as the first parameter.
  3. Add the suffix .extension to the file name.
  4. Mark the class as public.

Answer(s): A

Explanation:

You first create a new class in the extension model.
There are a few rules for augmentation classes:

They must be final (not public!).
They must be suffixed by _Extension (not in the file name!)
They must be decorated with the [ExtensionOf()] attribute.


Reference:

https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/add-method-table



View Related Case Study

HOTSPOT (Drag and Drop is not supported)
You are a Dynamics 365 Finance developer. You have the following code: (Line numbers are created for reference only.)


Which values does the info() method return? To answer, select the appropriate option in the answer area.

NOTE: Each correct selection is worth one point.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:




Box 1: SID1234
Parameters
All methods have their own scope. A method can take one or more parameters. Within the scope of the method, these parameters are treated as local variables and are initialized with a value from the parameter in the method call. All parameters are passed by value, which means that you can't change the value of the original variable. You can change only the local variable in the method. This local variable is a copy of the original variable.
Box 2: 5


Reference:

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-classes-methods



View Related Case Study

You are a Dynamics 365 Finance developer.
You have a table named FMVehicle that contains a field named VehicleId. The table has a clustered index named VehicleIdIdx on the VehicleId field. You declare a table buffer named vehicle to refer to the table.

You need to select all records from the FMVehicle table in ascending order based on VehicleId field in the vehicle variable.

Which embedded-SQL statement should you use?

  1. select vehicle index VehicleId;
  2. select vehicle order by VehicleId;
  3. select VehicleId from vehicle order by VehicleId asc;
  4. select vehicle order by VehicleId desc;

Answer(s): B

Explanation:

All select statements use a table variable to fetch records. The results of a select statement are returned in a table buffer variable, here vehicle.


Reference:

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-data-query



Page 33 of 66



Post your Comments and Discuss Microsoft MB-500 exam with other Community members:

the coder1 commented on December 11, 2024
It helped alot
UNITED KINGDOM
upvote

Ek commented on June 29, 2024
It helped alot
INDIA
upvote

Tom commented on March 18, 2022
i purchased this exam dumps from another website with way more questions but they were all invalid and outdate. this exam dumps was right to the point and all from recent exam. it was a hard pass.
UNITED KINGDOM
upvote

Tom commented on March 18, 2022
I purchased this exam dumps from another website with way more questions but they were all invalid and outdate. This exam dumps was right to the point and all from recent exam. It was a hard pass.
UNITED KINGDOM
upvote

Eddie commented on September 20, 2021
These notes are pretty informative along with the questions. I helped a lot.
UNITED STATES
upvote