Monday 24 October 2016

AIF AX 2012  Document service operations

Basically we deal with normal service (CRUD) operation while creating a document service. I hope everyone who came to this post might be aware of basic CRUD operations. Hence, I will explain them in brief whereas will try to focus on other operations available in AX 2012 document service and will be more useful.

Create: Create operation will insert the record as per the document service query. It performs create operation on all the related data sources  which are related in query if specified.

Read: Read operation read the document based on passed entity key and return the AXd class instance which contains information about all the related datasets.

Update: There is often requirement to update the record from third party applications, hrnce need to use update operation in such scenarios.

Delete: Delete operation has been rarely used but, is called when we need to delete the record when instructed by third party application.

Find: Find operation works similar as it is in X++, it will try to find the record based on criteria specified for find operation and return the record.

findKeys: This operation is similar to find operation where as it is different in terms of return value, it return only the entity keys required, whereas find returns the complete record. This operation is used when the service is deployed using enhanced port only.




No comments:

Post a Comment