Publishing platform events for automation results
The Automate Drive flow action has the ability to publish platform events for operation results that can be used with Apex triggers and Platform Event-Triggered flows. By default, publishing these platform events is disabled and can be enabled on a per-operation basis using the Publish results events toggle. The results are provided in JSON format.
Available Data
The following are all keys are available via the data
key of the JSON results:
Key | Type | Description |
---|---|---|
actionApiName |
String | The API name of the Automate Drive action (as configured in the Flow Builder) that the operation belongs to. |
objectName |
String | The object API name that the Automate Drive action is defined for. |
recordId |
String | The Salesforce record ID that the operation ran in the context of. |
contentDocumentId |
String | The Salesforce ID of the ContentDocument record that was created in the operation (available when linking files and folders and saving files to Salesforce). |
contentVersionId |
String | The Salesforce ID of the ContentVersion record that was created in the operation (available when linking files and folders and saving files to Salesforce). |
id |
String | The Google Drive file or folder ID that was created/modified in the operation. |
name |
String | The name of the file or folder ID that was created/modified in the operation. |
webViewLink |
String | The URL of the Drive file or folder that was created/modified in the operation. |
mimeType |
String | The MIME type of the file or folder that was created/modified in the operation. |
parents |
List<String> | The Drive folder ID that the created/modified Drive file or folder is located in (can be extracted from index 0; listed as root when the location is My Drive). |