Skip to main content

Notifications

Dynamics 365 Community / Blogs / Goshoom. NET Dev Blog / Entity collection as OData ...

Entity collection as OData action parameter

Martin Dráb Profile Picture Martin Dráb 228,493 Most Valuable Professional
Data entities in F&O can be exposed through OData protocol. You can also add OData actions by creating methods in X++ and decorating them with SysODataCollectionAttribute. You can see an example in MssLeaveRequestDateEntity.getDirects(): [ SysODataActionAttribute('getDirects', false), SysODataCollectionAttribute('return', Types::Record, 'MssLeaveRequestDateEntity') ] public static List getDirects( str reportingPersonnelNumber, date fromDate, date toDate, LeaveRequestApprovalStatus leaveRequestStatus) { List list ...

Continue reading ‘Entity collection as OData action parameter’ »


This was originally posted here.

Comments

*This post is locked for comments