The createActionFromPackageTemplate() GraphQL mutation field may be used to create an action from a package action template.

For more information on creating an action, see the Actions documentation page. You may also want to look at the Packages page for related information.

Syntax

Below is the syntax for the createActionFromPackageTemplate() mutation field:

graphql
createActionFromPackageTemplate(
      viewName: string!
      packageId: VersionedPackageSpecifier!
      actionTemplateName: string!
      overrideName: string
   ): CreateActionFromPackageTemplateMutation!

Given and Returned Datatypes

The given datatype VersionedPackageSpecifier is just a scalar. However, the returned datatype CreateActionFromPackageTemplateMutation has its own parameter:

Table: CreateActionFromPackageTemplateMutation

ParameterTypeRequiredDefaultDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 24, 2024
actionActionyes The action to create from a package template. See Action.