Use this call to retrieve the names and actions for a given Process in an Anaplan model.
Note:
- Actions which are imports or exports (actionType field is IMPORT or EXPORT) contain additional fields in the response (see below). Other actions just contain the id, name, and actionType.
- Actions are ordered in the sequence that they run when the Process itself is executed.
- For an action with actionType of IMPORT, you can use the importDataSourceId value as the ID of a file for the fileId parameter when you upload or download files.
- For actions with actionType of EXPORT or IMPORT, you can find more information about them if you use the IDs as exportId or importId in the export and import metadata endpoints.
- The possible values for actionType (non-exhaustive list):
- IMPORT
- EXPORT
- DELETE_BY_SELECTION
- ORDER_HIERARCHY
- OPTIMIZER
- To include additional information regarding the import data source in an import action, add the ?showImportDataSource=true query parameter to the request.
Method and endpoint
/models/{modelId}/processes/{processId}
Parameters
| Parameter | Details |
| {modelId} |
|
| {processId} |
|
| {showImportDataSource} |
|
Curl example
curl -X GET 'https://api.anaplan.com/2/0/models/{modelId}/processes/{processId}' \
-H 'Authorization: AnaplanAuthToken {anaplan_auth_token}'\
-H 'Accept: application/json'
Response
Response headers
Content-Type: application/json
Response 200 Body
{
"meta": {
"schema": "https://api.anaplan.com/2/0/objects/process"
},
"status": {
"code": 200,
"message": "Success"
},
"processMetadata": {
"name": "ProcessWithActions",
"actions": [
{
"id": "112000000000",
"name": "Sales from import-sales.csv",
"actionType": "IMPORT",
"importDataSourceId": "113000000000",
"importType": "MODULE_DATA",
"importDataSource": {
"importDataSourceId": "113000000000",
"type": "FILE"
}
},
{
"id": "116000000000",
"name": "Sales - Revenue.xls",
"actionType": "EXPORT",
"exportType": "GRID_CURRENT_PAGE",
"exportFormat": "application/vnd.ms-excel",
"layout": "GRID_CURRENT_PAGE"
},
{
"id": "117000000000",
"name": "Delete from Products",
"actionType": "DELETE_BY_SELECTION"
}
]
}
}