Question 81

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You must extend the class SalesLineType and add a new method that returns the day of week for the system's current date as an integer value.
You need to create a class that extends SalesLineType and adds the new method.
Solution: You create the following code:

Does the solution meet the goal?
  • Question 82

    You are the Dynamics 365 Finance Developer.
    You have the following class definition:

    You need to create an extension class and wrap the method by using Chain of Command (CoC), if the value of the Qty variable is less than 5, the code must cause an exception.
    How should you complete the code segment? To answer, select the appropriate options in the answer area.
    NOTE: Each correct selection is worth one point.

    Question 83

    You are a Dynamics 365 Finance developer. You are testing a workflow in a user acceptance testing environment. You need to ensure that a specific user can accept purchase requisitions only if the requisition is in a specific status. Which two options can you configure to achieve the goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
  • Question 84

    A company has a Dynamics 365 Finance and Operations environment.
    You need to implement indices for new tables.
    Which types of indexes should you use? To answer, drag the appropriate types of indexes to the correct requirements. Each type of index may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
    NOTE: Each correct selection is worth one point.

    Question 85

    Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
    After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
    You have an enumeration named truckStatus that has the following statuses:
    * Empty
    * Loaded
    * Completed
    You have the following code:

    You need to extend this enumeration and add the following statuses to the enumeration: Quarantine, InTransit.
    You must then modify code that validates the switch statement.
    Solution: Add a post handler to the method that checks the enumeration and logic for your new enumeration values using the integer value of the enumeration.

    Does the solution meet the goal?