Using API Reporting Views
As of the EOS release, reporting views are available to help you efficiently run reports in any application of your choice.
Extend existing entities
Define a View
create view SpecialServices as
select
--PrimaryRelationId is the primary key and will be modelled as a navigation property
--Navigation properties are used for linked fields and joins via the API
--the Data Type exposed by the API for this property is dictated by the RELATED_ENTITY_ID setting
--the API will filter the results based on the current users permissions for this primary relation
ITEM_REF as PrimaryRelationId,
--Select any data in this view
Title as Title,
--Columns ending with Id will be modelled as navigation properties if the name matches the name of an existing entity type
--in this example the API will expose a property named ServiceLevel and you will be able to select ServiceLevel.Name via the API
SERVICE_LEVEL as ServiceLevelId
from AR_PRIMARY_ASSET
--apply relevant filters
--you can join on any table
where ROOT_ENTITY_TYPE = 2
goAdd the View to the API
Add Other Data Types
Define a New Custom View
Add the View to the API
Was this helpful?
