Smart Content Search

Find the exact content you need

Search across courses, articles, programs, MCQs, and descriptive questions from your knowledge platform in one clean workspace.

685

Results Found

35

Current Page

35

Total Pages

Showing 685 result(s) for your search.

x++
Question Result 681

Why use AOT Views?

X++ Programming Language Views in D365 F&O - X++ Code Views in D365 F&O - X++ Code
Avoid writing complex joins repeatedly Improve performance in reports and forms Support computed fields using X++ Widely used in SSRS, Power BI, and OData Key Point (Interview Tip) “AOT Views do not store data. They execute SQL queries at runtime and can inclu...
View Details
/question/10358
Question Result 682

Why would you choose to use a static method over an instance method in OOP?

D365 F&O Technical Using X++ Programming Language Class and Objects - Object-Oriented Programming (OOP) Concept X++ Language Create a class in X++ Language
You would choose to use a static method in X++ when the method's functionality does not depend on the state of a specific object. Static methods are suitable for operations that are general to the class and do not require access to instance variables. Since st...
View Details
/question/7684
Question Result 683

X++ - How do you Run a class

X++ Programming Language OOP Concepts X++ Language Class Introduction
You have several options. Create a X++ job in the Jobs AOT node. Place code that invokes your class in the job body and press F5 to run. Create a main method on your class with the following signature: static void main (Args _args) { // Your X++ code here. } Y...
View Details
/question/7360
Question Result 684

X++ code to show record count during set based update operation in D365FO

X++ Programming Language Data Selection and Manipulation update_recordset statement D365 F&O
In this answer we will see the code to know the record count after set based update operation. For demo purpose, created a runnable class "CG_UpdateRecordSetRecordCount" and used the below code to update the field "classification group" of customers based on c...
View Details
/question/10356
Question Result 685

You are tasked with extending the functionality of a base class method in Dynamics 365 Finance and Operations without modifying the base code. You need to ensure that custom logic can be executed both before and after the base method's logic. How would you achieve this, and why is your chosen method the most appropriate solution?

D365 F&O Technical Using X++ Programming Language Chain of Command What is Chain of Command (CoC)?
The most appropriate solution is to implement Chain of Command (CoC) in an extension class. CoC allows you to wrap X++ code around methods defined in the base class, enabling you to add custom logic before and/or after the execution of the base method. This ap...
View Details
/question/7689