Note: This is the new Export Process Report to CSV Smart Service. If you need to export to Excel, use the Export Process Report to Excel Smart Service.
The Export Process Report to CSV Smart Service allows designers to safely export large amounts of data from process reports.
When exporting to CSV, raw values and data are intentionally left alone and unformatted. If formatted values are necessary, please use the Export Process Report to Excel Smart Service instead. It can be used to export data from Appian that can then be imported into other third-party applications. A designer may want to export all data or just updates made within the last day.
The Smart Service returns a document in a CSV format.
Export Process Report to CSV Smart Service
Icon:
Name | Data Type | Description | Required | Multiple |
---|---|---|---|---|
Process Report | Process Report | The process report to query. | Y | N |
Filters | Any Type | A set of conditions to apply to the queried data. Can use either a list of a!queryFilter() or a single a!queryLogicalExpression() . When using a list of a!queryFilter() , all filters are combined using the AND operator. Filters saved to the process report are applied before these are applied. |
N | Y |
Report Context | Any Type | Contains an array of either Group , User , Number (Integer) , or Process Model to pass to the report context. |
N | N |
New Document Name | Text | The name of the new document that is to be created by this smart service activity. | N | N |
New Document Description | Text | A brief description of the document. | N | N |
Save in Folder | Folder | The folder where the newly created document is to be stored. Applicable and required when creating a new document. | N | N |
Document to Update | Document | The existing document to update with the exported data. This can be useful when using the smart service multiple times in the same process model. Using this parameter will append new contents at the end of the file. Note: A new version of this document will be created. | N | N |
Include header | Boolean | Outputs the label of each field in the first row of the document if set to true . Default is true |
N | N |
CSV Delimiter | Text | The field delimiter used to separate fields in the CSV file. Valid values are: "TAB" , "COMMA" , "SEMICOLON" , "SPACE" , "PIPE" , "CARET" . Default is "COMMA" . |
N | N |
Name | Data Type | Description |
---|---|---|
New Document | Document | The document generated as a result of executing this smart service. |
Exports data from a process report to CSV. This function will only execute inside a saveInto on a component or as part of a Web API.
a!exportProcessReportToCsv( report, filters, context, documentName, documentDescription, saveInFolder, documentToUpdate, includeHeader, csvDelimiter, onSuccess, onError )
Keyword | Type | Description |
---|---|---|
|
Document |
The process report to query. |
|
Any Type |
(Optional) A set of conditions to apply to the queried data. Can use either a list of |
|
Any Type |
Contains an array of either |
|
Text |
The name of the new document that is to be created by this smart service. |
|
Text |
(Optional) A brief description of the document. |
|
Folder |
The folder where the newly created document is to be stored. Applicable and required when creating a new document. |
|
Document |
The existing document to update with the exported data. Using this parameter will append new contents at the end of the file. Note: A new version of this document will be created. |
|
Boolean |
(Optional) Outputs the field's label in the first row of the document if set to |
|
Text |
(Optional) The field delimiter used to separate fields in the CSV file. Valid values are: |
|
Any Type |
A list of saves or an HTTP response to execute after the smart service executes successfully. Created with |
|
Any Type |
A list of saves or an HTTP response to execute when the smart service does not execute successfully. Created with |
Copy and paste an example into an Appian Expression Editor to experiment with it.
You will need to provide a constant to replace both REPORT and TARGET_FOLDER.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
a!localVariables(
local!exportId,
{
a!linkField(
labelPosition: "COLLAPSED",
links: a!dynamicLink(
label: "Render CSV File",
saveInto: {
a!exportProcessReportToCsv(
report: cons!REPORT,
documentName: "Report " & now(),
saveInFolder: cons!TARGET_FOLDER,
onSuccess: a!save(
local!exportId,
fv!newDocument
)
)
}
)
)
}
)
The following configurations and expected behavior apply when using the Export Process Report to CSV Smart Service from the Process Modeler:
Data Types:
Feature | Compatibility | Note |
---|---|---|
Portals | Partially compatible | Can be used with Appian Portals if it is connected using an integration and web API. |
Offline Mobile | Incompatible | |
Sync-Time Custom Record Fields | Incompatible | |
Real-Time Custom Record Fields | Incompatible | |
Process Reports | Incompatible | You cannot use this function to configure a process report. |
Process Events | Incompatible | You cannot use this function to configure a process event node, such as a start event or timer event. |
Export Process Report to CSV Smart Service