Risk Cloud API: View Field Audits
Updated on: April 04, 2024
This article details the endpoints for obtaining and exporting field audits. The results from these endpoints are only accessible to access keys belonging to users with the Admin > All module entitlement and in some cases if you have access to the required entity.
Field Audit
Find All Field Audit By Record Id
Retrieve all field audits based on record id.
Required Path Parameter | Description |
recordId recordId |
The unique ID of a record where, if provided, the response will only contain field audits from the identified record. |
This endpoint has the following optional query parameters for additional filtering.
Query Parameter | Description |
page page |
The zero-indexed page number (must not be less than 0, defaults to 0). |
size size |
The size of the page and maximum number of items to be returned (must not be less than 1, defaults to 20). |
Result
A paginated response of all field audit results related to the record, containing the following info:
Result Field | Description |
id id |
The unique ID of the field audit. |
fieldId fieldId |
The unique ID of the field audit. |
fieldLabel fieldLabel |
The label of the field, which is presented to end users for the field.
|
fieldName fieldName |
The name of the field, which is used to identify the field in the Build and Reports modules.
|
created created |
The created date of the field audit in epoch time in milliseconds ex.
1712168746685 |
recordId recordId |
The unique ID of the record. |
userName userName |
The name of the creator. |
userEmail userEmail |
The email of the creator. |
fieldValues fieldValues |
The list of field values. |
executorId executorId |
The unique ID of the executor. |
executorName executorName |
The name of the executor.
|
executorType executorType |
The type of executor ex.
USER_ACTION |
defaultValue defaultValue |
Is this value the default field value or not ex.
false |
Get Most Recent Field Audit By Value Map
Retrieve the most recent field audit by value map.
Required Path Parameter | Description |
valueMapId valueMapId |
The unique ID of a value map where, if provided, the response will only contain field audits from the identified value map. |
Result
A simplified field audit object response of the most recent field audit related to the value map, containing the following info:
Result Field | Description |
id id |
The unique ID of the field audit. |
fieldId fieldId |
The unique ID of the field. |
fieldLabel fieldLabel |
The label of the field, which is presented to end users for the field.
|
fieldName fieldName |
The name of the field, which is used to identify the field in the Build and Reports modules.
|
fieldType fieldType |
The type of field ex. Common |
created created |
The created date of the field audit in epoch time in milliseconds ex.
1712168746685 |
recordId recordId |
The unique ID of the record. |
userId userId |
The unique ID of the user. |
userName userName |
The name of the user. |
userEmail userEmail |
The email of the user. |
fieldValues fieldValues |
The list of field values. |
Field Audit Export
Export All Field Audit By Record Id
Export all field audits based on record id. Optionally, results can be ordered by pageable parameters and be within the specified min created date and max created date range.
Required Path Parameter | Description |
recordId recordId |
The unique ID of a record where, if provided, the response will only contain field audits from the identified record. |
This endpoint has the following optional query parameters for additional filtering.
Query Parameter | Description |
page page |
The zero-indexed page number (must not be less than 0, defaults to 0). |
size size |
The size of the page and maximum number of items to be returned (must not be less than 1, defaults to 20). |
minCreated minCreated |
The min created date in epoch time in milliseconds ex. oldest date lower bound 1711997926000
|
maxCreated maxCreated |
The max created date in epoch time in milliseconds ex. newest date upper bound 1712170726000
|
Result
A view containing all field audit results related to the record. This response can be saved as a csv, xlsx, txt, or other appropriate formats for later viewing.
Ex.
Created Date,Field Id,Field Label,Field Name,Field Type,Field Values,Record Id,User Email,User Name,Executor ID,Executor Name,Execution Type,Is Default Value 2024-04-03 18:25:53,LkTGrIvx,Select the date by which the record must be completed.,Due Date,DueDateFieldTransient,[1717261200000],bnWzIMRy,admin+localhost@logicgate.com,LogicGate Administrator,gMLjJcmK,LogicGate Administrator,USER_ACTION,false 2024-04-03 18:25:47,3PvdkyZM,t,t,InfiniteTextField,[new 11],bnWzIMRy,admin+localhost@logicgate.com,LogicGate Administrator,gMLjJcmK,LogicGate Administrator,USER_ACTION,false