DescribeQuickActionResult Class
Contains describe metadata information for a quick action.
The QuickAction describeQuickActions method returns an array of quick action describe result objects (QuickAction.DescribeQuickActionResult).
The following are properties for DescribeQuickActionResult.
-
The name of the Canvas application invoked by the custom action.
-
Array of color information. Each color is associated with a theme.
-
The object used for the action. Was
getsourceSobjectType()in API version 29.0 and earlier. -
The action’s default values.
-
If the custom action invokes a flow, the fully qualified name of the flow.
-
If the custom action invokes a flow, the input variable that the custom action passes the record’s ID to.
-
The height in pixels of the action pane.
-
The name of the icon used for the action. If a custom icon is not used, this value isn’t set.
-
Array of icons. Each icon is associated with a theme.
-
The URL of the icon used for the action. This icon URL corresponds to the 32x32 icon used for the current Salesforce theme, introduced in Spring ’10, or the custom icon, if there is one.
-
The section of the layout where the action resides.
-
If the custom action invokes an Aura component, the ID of the Aura component bundle to which the component belongs.
-
If the custom action invokes an Aura component, the name of the Aura component bundle to which the component belongs.
-
lightningcomponentqualifiedname
The fully qualified name of the Aura component invoked by the custom action.
-
If the custom action invokes a Lightning web component, the ID of the Lightning web component bundle to which the component belongs.
-
lightningwebcomponentbundlename
If the custom action invokes a Lightning web component, the name of the Lightning web component bundle to which the component belongs.
-
lightningwebcomponentqualifiedname
The fully qualified name of the Lightning web component invoked by the custom action.
-
The icon’s URL. This icon URL corresponds to the 16x16 icon used for the current Salesforce theme, introduced in Spring ’10, or the custom icon, if there is one.
-
Indicates whether the Lightning component quick action header and footer are shown. If
false, then both the header containing the quick action title and the footer containing the Save and Cancel buttons aren’t displayed. -
Indicates whether the Visualforce quick action header and footer should be shown. If
false, then both the header containing the quick action title and the footer containing the Save and Cancel buttons aren’t displayed. -
The parent object type of the action. Links the target object to the parent object. For example, the value is Account if the target object is Contact and the parent object is Account.
-
The record type of the target record.
-
The action’s target object type.
-
The name of the Visualforce page associated with the custom action.
-
The URL of the Visualforce page associated with the action.
-
The width in pixels of the action pane, for custom actions that call Visualforce pages, Canvas apps, or Lightning components.
The name of the Canvas application invoked by the custom action.
public String canvasapplicationname {get; set;}
Type: String
Array of color information. Each color is associated with a theme.
public List<Schema.DescribeColorResult> colors {get; set;}
Type: List<Schema.DescribeColorResult>
The object used for the action. Was getsourceSobjectType() in API version 29.0 and earlier.
public String contextsobjecttype {get; set;}
Type: String
The action’s default values.
public List<QuickAction.DescribeQuickActionDefaultValue> defaultvalues {get; set;}
Type: List<QuickAction.DescribeQuickActionDefaultValue>
If the custom action invokes a flow, the fully qualified name of the flow.
public String flowdevname {get; set;}
Type: String
If the custom action invokes a flow, the input variable that the custom action passes the record’s ID to.
public String flowrecordidvar {get; set;}
Type: String
Valid values are null or recordId.
The height in pixels of the action pane.
public Integer height {get; set;}
Type: Integer
The name of the icon used for the action. If a custom icon is not used, this value isn’t set.
public String iconname {get; set;}
Type: String
Array of icons. Each icon is associated with a theme.
public List<Schema.DescribeIconResult> icons {get; set;}
Type: List<Schema.DescribeIconResult>
If no custom icon was associated with the quick action and the quick action creates a specific object, the icons will correspond to the icons used for the created object. For example, if the quick action creates an Account, the icon array will contain the icons used for Account.
If a custom icon was associated with the quick action, the array will contain that custom icon.
The URL of the icon used for the action. This icon URL corresponds to the 32x32 icon used for the current Salesforce theme, introduced in Spring ’10, or the custom icon, if there is one.
public String iconurl {get; set;}
Type: String
The section of the layout where the action resides.
public QuickAction.DescribeLayoutSection layout {get; set;}
Type: QuickAction.DescribeLayoutSection
If the custom action invokes an Aura component, the ID of the Aura component bundle to which the component belongs.
public String lightningcomponentbundleid {get; set;}
Type: String
If the custom action invokes an Aura component, the name of the Aura component bundle to which the component belongs.
public String lightningcomponentbundlename {get; set;}
Type: String
The fully qualified name of the Aura component invoked by the custom action.
public String lightningcomponentqualifiedname {get; set;}
Type: String
If the custom action invokes a Lightning web component, the ID of the Lightning web component bundle to which the component belongs.
public String lightningwebcomponentbundleid {get; set;}
Type: String
If the custom action invokes a Lightning web component, the name of the Lightning web component bundle to which the component belongs.
public String lightningwebcomponentbundlename {get; set;}
Type: String
The fully qualified name of the Lightning web component invoked by the custom action.
public String lightningwebcomponentqualifiedname {get; set;}
Type: String
The icon’s URL. This icon URL corresponds to the 16x16 icon used for the current Salesforce theme, introduced in Spring ’10, or the custom icon, if there is one.
public String miniiconurl {get; set;}
Type: String
Indicates whether the Lightning component quick action header and footer are shown. If false, then both the header containing the quick action title and the footer containing the Save and Cancel buttons aren’t displayed.
public Boolean showquickactionlcheader {get; set;}
Type: Boolean
Indicates whether the Visualforce quick action header and footer should be shown. If false, then both the header containing the quick action title and the footer containing the Save and Cancel buttons aren’t displayed.
public Boolean showquickactionvfheader {get; set;}
Type: Boolean
The parent object type of the action. Links the target object to the parent object. For example, the value is Account if the target object is Contact and the parent object is Account.
public String targetparentfield {get; set;}
Type: String
The record type of the target record.
public String targetrecordtypeid {get; set;}
Type: String
The action’s target object type.
public String targetsobjecttype {get; set;}
Type: String
The name of the Visualforce page associated with the custom action.
public String visualforcepagename {get; set;}
Type: String
The URL of the Visualforce page associated with the action.
public String visualforcepageurl {get; set;}
Type: String
The width in pixels of the action pane, for custom actions that call Visualforce pages, Canvas apps, or Lightning components.
public Integer width {get; set;}
Type: Integer
The following are methods for DescribeQuickActionResult. All are instance methods.
-
Returns the unique ID for the action. If the action doesn’t have an ID, its API name is used.
-
Returns the name of the Canvas application, if used.
-
Returns an array of color information. Each color is associated with a theme.
-
Returns the object used for the action. Replaces
getsourceSobjectType()in API version 30.0 and later. -
Returns the default values for a action.
-
If the custom action invokes a flow, returns the fully qualified name of the flow invoked by the custom action.
-
If the custom action invokes a flow, returns the input variable that the custom action passes the record’s ID to.
-
Returns the height in pixels of the action pane.
-
Returns the actions’ icon name.
-
Returns the URL of the 32x32 icon used for the action.
-
Returns a list of
Schema.DescribeIconResultobjects that describe colors used in a tab. -
Returns the action label.
-
Returns the layout sections that comprise an action.
-
getLightningComponentBundleId()
If the custom action invokes an Aura component, returns the ID of the Aura component bundle to which the component belongs.
-
getLightningComponentBundleName()
If the custom action invokes an Aura component, returns the name of the Aura component bundle to which the component belongs.
-
getLightningComponentQualifiedName()
If the custom action invokes an Aura component, returns the fully qualified name of the Aura component invoked by the custom action.
-
getLightningWebComponentBundleId()
If the custom action invokes a Lightning web component, returns the ID of the Lightning web component bundle to which the component belongs.
-
getLightningWebComponentBundleName()
If the custom action invokes a Lightning web component, returns the name of the Lightning web component bundle to which the component belongs.
-
getLightningWebComponentQualifiedName()
If the custom action invokes a Lightning web component, returns the fully qualified name of the Lightning web component invoked by the custom action.
-
Returns the 16x16 icon URL.
-
Returns the action name.
-
Returns an indication of whether the Lightning component quick action header and footer are shown.
-
Returns an indication of whether the Visualforce quick action header and footer should be shown.
-
Returns the object type used for the action.
-
Returns the parent object’s type for the action.
-
Returns the record type of the targeted record.
-
Returns the action’s target object type.
-
Returns a create or custom Visualforce action.
-
If Visualforce is used, returns the name of the associated page for the action.
-
Returns the URL of the Visualforce page associated with the action.
-
If a custom action is created, returns the width in pixels of the action pane.
Returns the unique ID for the action. If the action doesn’t have an ID, its API name is used.
public String getActionEnumOrId()
Type: String
Returns the name of the Canvas application, if used.
public String getCanvasApplicationName()
Type: String
Returns an array of color information. Each color is associated with a theme.
public List<Schema.DescribeColorResult> getColors()
Type: List <Schema.DescribeColorResult>
Returns the object used for the action. Replaces getsourceSobjectType() in API version 30.0 and later.
public String getContextSobjectType()
Type: String
Returns the default values for a action.
public List<QuickAction.DescribeQuickActionDefaultValue> getDefaultValues()
Type: List<QuickAction.DescribeQuickActionDefaultValue>
If the custom action invokes a flow, returns the fully qualified name of the flow invoked by the custom action.
public String getFlowDevName()
Type: String
If the custom action invokes a flow, returns the input variable that the custom action passes the record’s ID to.
public String getFlowRecordIdVar()
Type: String
Returns the height in pixels of the action pane.
public Integer getHeight()
Type: Integer
Returns the actions’ icon name.
public String getIconName()
Type: String
Returns the URL of the 32x32 icon used for the action.
public String getIconUrl()
Type: String
Returns a list of Schema.DescribeIconResult objects that describe colors used in a tab.
public List<Schema.DescribeIconResult> getIcons()
Type: List<Schema.DescribeIconResult>
Returns the action label.
public String getLabel()
Type: String
Returns the layout sections that comprise an action.
public QuickAction.DescribeLayoutSection getLayout()
Type: QuickAction.DescribeLayoutSection
If the custom action invokes an Aura component, returns the ID of the Aura component bundle to which the component belongs.
public String getLightningComponentBundleId()
Type: String
If the custom action invokes an Aura component, returns the name of the Aura component bundle to which the component belongs.
public String getLightningComponentBundleName()
Type: String
If the custom action invokes an Aura component, returns the fully qualified name of the Aura component invoked by the custom action.
public String getLightningComponentQualifiedName()
Type: String
If the custom action invokes a Lightning web component, returns the ID of the Lightning web component bundle to which the component belongs.
public String getLightningWebComponentBundleId()
Type: String
If the custom action invokes a Lightning web component, returns the name of the Lightning web component bundle to which the component belongs.
public String getLightningWebComponentBundleName()
Type: String
If the custom action invokes a Lightning web component, returns the fully qualified name of the Lightning web component invoked by the custom action.
public String getLightningWebComponentQualifiedName()
Type: String
Returns the 16x16 icon URL.
public String getMiniIconUrl()
Type: String
Returns the action name.
public String getName()
Type: String
Returns an indication of whether the Lightning component quick action header and footer are shown.
public Boolean getShowQuickActionLcHeader()
Type: Boolean
If false, then both the header containing the quick action title and the footer containing the Save and Cancel buttons aren’t displayed.
Returns an indication of whether the Visualforce quick action header and footer should be shown.
public Boolean getShowQuickActionVfHeader()
Type: Boolean
If false, then both the header containing the quick action title and the footer containing the Save and Cancel buttons aren’t displayed.
Returns the object type used for the action.
public String getSourceSobjectType()
Type: String
Returns the parent object’s type for the action.
public String getTargetParentField()
Type: String
Returns the record type of the targeted record.
public String getTargetRecordTypeId()
Type: String
Returns the action’s target object type.
public String getTargetSobjectType()
Type: String
Returns a create or custom Visualforce action.
public String getType()
Type: String
If Visualforce is used, returns the name of the associated page for the action.
public String getVisualforcePageName()
Type: String
Returns the URL of the Visualforce page associated with the action.
public String getVisualforcePageUrl()
Type: String
If a custom action is created, returns the width in pixels of the action pane.
public Integer getWidth()
Type: Integer