When to create a new Model
Jump to navigation
Jump to search
Overview
In OdataLink, Models are used to configure what datafiles are used to fetch data, and which users and IP addresses are allowed to access this data.
OdataLink recommends creating a new model for each new report or dashboard.
When to create a new model
Creating a new model grants Administrators a lot more control over the usage and access of data provided via the model.
- Limit endpoints
- Limiting endpoints ensures that only the required endpoints are available.
- Limit access
- Limiting Users and IP addresses ensures that the data is accessible by authorised users only.
- Separate and Archive data
- Configuring older data in a Static Archive Type and latest data in a Live Archive may be required in some specific cases.
- Some other solutions may require a partitioning of data into different archives by Date or by Type (Limit by Date or Limit endpoints).
- Audit logs and troubleshoot
- Different models for separate reports make it easier to audit logs and troubleshoot errors.
- New Module or data required
- Xero API is designed to provide data in separate modules, and users need to create separate models to fetch respective data.
- For e.g. To fetch Payroll data from AU and UK datafiles, users need to create 2 models, Xero Payroll (Australia) Model and Xero Payroll (UK) Model.
- Or if a report requires Accounting and Projects data, a Xero Accounting Model and a Xero Projects Model is required.