Using Create File Actions
The Create File action in OneTrust Integrations is an effective way to automatically generate a file for business reporting needs. In addition to the standard features in the Reports module, this action goes further by creating custom reports using data from resources and assets across the OneTrust application.
The action is most commonly triggered by a webhook or an internal action, such as completing an assessment or advancing a DSAR workflow. Additionally, it can be referenced through parsing or other logic sequences to create files through each iteration of a workflow.
Things to Know
-
The Create File action not only generates a file but will also store it in our blob storage. If you need to re-upload the generated file for use in the OneTrust platform, we recommend using the FILEID as a reference variable. Using the Upload File action would be redundant as the file is already uploaded to our blob storage. This will permit you to ingest the file into other OneTrust services, such as Targeted Data Discovery.
To create the action
Using Variables Across the Platform
When using the Create File action, you can leverage the response variables in other integration calls.
|
Variable |
Description |
|---|---|
|
fileName |
Identifies the naming convention of the created file. |
|
absoluteFilePath |
Complete address of a file or directory starting at the root directory of the system. |
|
fileLength |
Shows the file length in bytes. |
|
lastModifiedDate |
Shows when the file was last updated. This will be null for newly created files. |
|
reference |
The random GUID associated with the file. |
|
extension |
Shows the type of file (e.g. csv for column, pdf for reports) |
|
dataFields |
Always defaults to null. |
|
jobId |
The random generated job ID of the executed call. |
|
file |
Combines the file GUID, file length, file extension, and file name in a single string. |
For example, the reference variable provided in the response can be used as the FILEID to use for other calls instead of having to name the file itself. This is helpful to share the created file to a Results Summary or ingest it as part of platform-wide integrations.
Below is the response of a Create File action:
{
"fileName": "order.orderStatus12031651.txt.CSV",
"absoluteFilePath": null,
"fileLength": 135,
"lastModifedDate": null,
"reference": "2daf9a74-a74e-4851-b338-0e7b2974443c",
"extension": "CSV",
"dataFields": null,
"jobId": null,
"file": "2daf9a74-a74e-4851-b338-0e7b2974443c:135:CSV:order.orderStatus12031651.txt.CSV"
}