Skip to main content
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 222,958 Super User
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’ »

Comments

*This post is locked for comments