nerdexam
Microsoft

MB-500 · Question #330

A company uses Dynamics 365 Finance. The company requires you to create a custom service. You need to create request and response classes for the custom service. Which class attribute should you use?

The correct answer is A. DataContract. To create request and response classes for a custom service in Dynamics 365 Finance, you need to use the DataContract attribute. This attribute is used to define the structure of the data that will be sent and received by the service, allowing for serialization and…

Implement data and application integration

Question

A company uses Dynamics 365 Finance. The company requires you to create a custom service. You need to create request and response classes for the custom service. Which class attribute should you use?

Options

  • ADataContract
  • BDataEventHandler
  • CDataCollection

How the community answered

(38 responses)
  • A
    95% (36)
  • B
    3% (1)
  • C
    3% (1)

Explanation

To create request and response classes for a custom service in Dynamics 365 Finance, you need to use the DataContract attribute. This attribute is used to define the structure of the data that will be sent and received by the service, allowing for serialization and deserialization of the class during service execution. DataContract is applied to classes to define them as data contracts for services. The other options (DataEventHandler and DataCollection) are not relevant for defining request and response classes for custom services.

Topics

#custom service#DataContract#service classes#X++ attributes

Community Discussion

No community discussion yet for this question.

Full MB-500 Practice