Q:
A company uses Dynamics 365 Finance.
The company wants to expose the product price through a web service for external applications to consume.
You need to create a JSON-based custom service.
Which Application Object Tree (AOT) element should you use?
Select only one answer.
-
A
Service group
-
B
Data entity
-
C
Provider
-
D
Macro
A
Answer:
A
Explanation:
The correct answer is:
✅ Service group
✅ Explanation:
To expose a JSON-based custom web service in Dynamics 365 Finance, you need to:
Create a service class and expose it through a Service group AOT element.
Why Service group?
-
A Service group:
-
Is used to publish custom services to be consumed externally.
-
Supports RESTful endpoints and returns data in JSON format.
-
Can contain one or more Service classes (with [SysODataAction] or [SysODataCollection] attributes).
This is the correct approach when you need custom business logic exposed to external applications through JSON-based APIs.
❌ Incorrect Options:
-
Data entity
❌ Used for data import/export and OData endpoints, but not suitable for custom logic or service operations.
-
Provider
❌ Not a specific AOT element used for creating custom JSON services.
-
Macro
❌ Used for compile-time constants or conditional code, unrelated to services or integrations.
✅ Final Answer:
✔ Service group
Related Topic:
Share Above MCQ