...
The base URL of the APIs is: /onelistserver/api/datasync
e.g. https://iqx.onelistapprovals.com/onelistserver/api/datasync/synctasks. These APIs can be viewed and tested using Swagger which is accessible via /onelistserver/swagger
. The full API signatures can also be found here.
Authentication
The adapter must use the OneList API key that is assigned to the source system to interact with the data sync APIs. Follow the steps in Manage Source Systems to find the API key for the source system. The API key should be specified in the X-API-Key
header in every HTTP request. Below is an example of a HTTP POST request:
...
The key terms used in the APIs
Term | Description |
---|
TaskType | This constant value must match the Task Adapter Task Type in OneList configured to handle the request. |
TaskId | This |
is the source system must be the consistent and unique identifier of the task |
. The value must be consistent whole lifecycle of the tasksource system. |
BusinessObjId | This is source system identifier of the business object associated with the task. For example, The PO number for the purchase order approval task; The SharePoint item id for the document approval task; It can be the same as the Task Id if there is no separate entity for the task.
|
ActionId | This is the source system workflow action identifier. |
Assignee | The user id of the source system user who is assigned to the task as the approver / agent. |
Delegator | The user id of the source system user who is delegating the task. |
Delegate | The user id of the source system user who is the task delegate. |
HashValue | The string value can be used to compare if the task has been changed. The following can be used as the hash value for a task: Last update timestamp; Version number of the business object, e.g. document version; Calculated based on the value of critical fields or the entire task, e.g. MD5 hash.
|
The key APIs for integration
Note: only the key parameters of each API are listed here, please view the full API signature via /onelistserver/ swagger.
Function | Description |
---|
/onelistserver/api/datasync/SyncTasks
| This API |
synchronizes synchronises OneList tasks with source workflow tasks. |
every action:The value of , ie. an action button is created for the whole task. They selected in the task configurator to bind the action with the Section (line) supporting line-level actionsThe value of (only applicable for Action type) the source system should all of the user selected action action is not applicable madatory hirerarchy |
/onelistserver/api/datasync/
|
GetUserSyncRequestsGetUserSync
| This API returns the list |
of user id the source system users who have outstanding task but are not yet mapped to an OneList user. The source system should call users that are requiring user accounts created in OneList. The adapter looks up the user profile information and calls the SyncUsers API to |
create or their accounts in OneList so they can view their tasks in OneListOneList. This API returns the list of: |
/onelistserver/api/datasync/GetActiveUsers
| This API returns the profile of active OneList users. It can be used to compare with source system user information to detect outdated OneList user profile. The UserName field is the source system user id; The OneListUserId field is the OneList user id; The other fields are the current OneList user profile information.
|
/onelistserver/api/datasync/SyncUsers
| This API adds or updates OneList user account with the source system user information. It also creates the user mapping between the OneList user account and the source system user account. The UserName field is the source system user id; The OneListUserId field is optional, if not specified then the UserName is used as the OneList user id; The other fields are used to populate the OneList user profile.
|
/onelistserver/api/datasync/SyncAttachments
| This API |
synchronizes synchronises OneList task attachment cache with source system files. |
sytem |
/onelistserver/api/datasync/GetActionRequests
| This API returns the list of user task actions. The source system should perform the requested task action in the workflow. |
is full detail key information of the task to be actioned; The TaskAction field contains the detail of the task action including user input such as approval comment; The LineActions array is only populated for task supporting line-level action; The Token field may contain the refresh token for source system to impersonate the user.
|
/onelistserver/api/datasync/PostTaskActionOutcome
/onelistserver/api/datasync/PostLineLevalTaskActionOutcome
| Source system calls this API to |
notifiy notify OneList of the requested task action. |
/api/DataSync/GetDelegationRequests
| This API returns the list of new or deleted delegation requested by the user. The adapter should add or remove the delegation records in the source system accordingly. The Operation is either New or Delete; The OneListRequestId is the OneList request id. It should be passed back in the PostDelegationOutcome API for OneList to update the status of the request; The SourceSystemRecordId is used for identifying the delegation record in the source system for deletion. This field is null when the Operation is New; The DelegateFromUser is the delegator’s user id in the source system; The DelegateToUser is the delegate’s user id in the source system; The WorkflowType is used for identifying the delegation subsystem or subcategory for which the request is targeting; The Scope is used for identifying the profile or scope for which the request is targeting;
|
/api/DataSync/PostDelegationOutcome
| The adapter calls this API to post the outcome of each delegation request. The OneListRequestId is required and must be assigned with the OneList request id; The SourceSystemRecordId is required when the outcome is successful; The IsError is a boolean value indicating if the request was processed successfully or not; The Message is an array of string for the adapter to return success or error information to OneList;
|
/api/DataSync/SyncDelegations
| The adapter calls this API to post the full list of current delegation records of the source system to OneList The SourceSystemRecordId is required and has the unique id of the source system delegation record; The DelegateFromUser is the delegator’s user id in the source system; The DelegateToUser is the delegate’s user id in the source system; The WorkflowType is the delegation subsystem or workflow of the delegation; The Scope is the profile or scenario of the delegation;
|
/api/DataSync/GetBusinessObjectRequests
| The adapter calls this API to get the list of id of the business objects requiring the updated snapshots. The API returns the following: |
/api/DataSync/SyncBusinessObjects
| The adapter calls this API to post the snapshot of business objects. The information posted are: The task type; The id of the business object; The hash value; The title of the business object. The full name of the requestor. Whether it is the final snapshot based on the status of the business object. The detail field must be the same task JSON as the TaskDetail JSON for the SyncTask API.
|
What needs to integrate with OneList
...