EmailAction is a datatype for an email action. It implements the interface datatype, Action. It's used by the createEmailAction() and updateEmailAction() mutation fields.

Table: EmailAction

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
allowedActions[AssetAction]yes Short-Term The allowed asset actions. See AssetAction . This is a preview feature. Changes may occur.
attachCsvbooleanyes Long-Term Whether the result set should be attached as a CSV file.
bodyTemplatestring  Long-Term Body of the email. Can be templated with values from the result.
createdInfoAssetCommitMetadata  Long-Term Metadata related to the creation of the action. See AssetCommitMetadata.
displayNamestringyes Long-Term The display name of the action.
idstringyes Long-Term The unique identifier of the action.
isAllowedToRunbooleanyes Long-Term False if this type of action is disabled because of a security policy.
labels[string]  Preview The labels associated with the action, if any.
modifiedInfoAssetCommitMetadata  Long-Term Metadata related to the latest modification of the action. See AssetCommitMetadata.
namestringyes Long-Term The name of the action.
packagePackageInstallation  Long-Term The package which the action is part. See PackageInstallation.
packageIdVersionedPackageSpecifier  Long-Term The package version. VersionedPackageSpecifier is a scalar.
recipients[string]yes Long-Term List of email addresses to send an email.
requiresOrganizationOwnedQueriesPermissionToEditbooleanyes Long-Term True if this action is used by triggers, where the query is run by the organization. If true, then the OrganizationOwnedQueries permission is required to edit the action.
resourcestringyes Short-Term The resource identifier for the action.
subjectTemplatestring  Long-Term Subject of the email. Can be templated with values from the result.
useProxybooleanyes Long-Term Defines whether the action should use the configured proxy to make web requests.
yamlTemplateYAMLyes Long-Term A template that can be used to recreate the action. YAML is a scalar.