You are on page 1of 3

Function Import

Function Import

The Open Data Protocol (OData) includes standard CRUD (Create,


Retrieve, Update, and Delete) operations that map to the HTTP
methods POST, GET, PUT/MERGE, and DELETE.
Function Import
In addition, OData supports further service operations (function imports) that can
be invoked by the HTTP methods GET or POST for anything that cannot be mapped
to the standard CRUD operations. You can implement such additional service
operations in the Service Builder by creating function imports within your data
model.
For example, you could create function imports for the following custom
operations:
•Confirm Work Item
•Check Flight Availability

While it is simple to create new function imports to invoke custom operations, if


the operation you want to use can be invoked using a standard CRUD operation,
you should not create a function import. That is, you should only create function
imports for custom operations that cannot be invoked using a standard operation.
In simple terms, if an operation cannot fit into CRUD scenario then you can
perform it by function import.

You might also like