Loading
Salesforce now sends email only from verified domains. Read More
Automate Your Business Processes
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Action Button Screen Input Component

          Action Button Screen Input Component

          Use the Action Button component so the running user can trigger a screen action with the click of a button on a screen. The screen action runs an active autolaunched flow, and the results of the autolaunched flow can be shown on the same screen as the button. Using this component means that you need fewer screens so users can complete screen flows more quickly.

          Required Editions

          View supported editions.

          For example, you can make it possible for users to select an account record in a Lookup component, click a button to retrieve the contact records associated with the account record, and then display the contact records in a Data Table component on the same screen.

          A screen flow at runtime shoing a Lookup component, and Action Button omponent, and a Data Table component

          Configure the Action Button Name

          Attribute Description
          API Name

          The API name of the component.

          An API name can include underscores and alphanumeric characters without spaces. It must begin with a letter and can’t end with an underscore. It also can’t have two consecutive underscores.

          Label If you select Use Label as the table title, the user-friendly text that appears above the component.
          Disabled

          If set to true, the user can’t modify the value. The default value is false.

          This attribute accepts a resource with a Boolean value.

          Configure the Action

          Attribute Description
          Action The screen action that launches the autolaunched flow. This is the flow that runs when the user clicks the button rendered by the Action Button component. The autolaunched flow must be active.
          Label The user-friendly name for the action associated with the component. This value can be different than the label of the flow that you select as the action.
          API Name

          The API name for the action associated with the component. This value can be different than the API name of the flow that you select as the action.

          An API name can include underscores and alphanumeric characters without spaces. It must begin with a letter and can’t end with an underscore. It also can’t have two consecutive underscores.

          Set Input Values Specify the value of each input field required by the action associated with the component. For example, if you select an autolaunched flow that requires an Account ID as an input, provide the Account ID. Variables that are available for input in the autolaunched flow appear in this area.
          View Output Values

          View the outputs created by the action. To reference an output elsewhere in the flow, first reference the Results field, for example, actionButtonApiName. Results.output. Variables that are available for output in the autolaunched flow appear in this area. Output values include:

          • ErrorMessage—Description of an error that occurred while executing the associated autolaunched flow.
          • IsSuccess—If true, indicates that the associated autolaunched flow ran without errors
          • Action.Results.Flow__InterviewGuid—Unique identifier of the flow interview
          • Action.Results.Flow__InterviewStatus—The status of the flow interview
          • InProgress—If true, indicates that the screen action is running.

          Set the Component Visibility

          Specify the logic that determines when the flow displays the component.

          Option Description
          When to Display Component

          Configure when the component is displayed by using conditional logic.

          You can set the components to:

          Always
          Always display the component.
          When all conditions are met (AND)
          Display the component when all of the conditions that you define are met. Define at least one condition.
          When any condition is met (OR)
          Display the component when at least one of the conditions that you define is met. Define at least one condition.
          When custom conditional logic is met
          Display the component when the condition logic that you define is met. Define at least one condition and specify condition logic.

          Specify the Behavior of Values on Revisited Screens

          Specify what this component does when a user enters a value, navigates to a previous screen, and then returns to the screen with this component.

          Option Description
          Use values from when the user last visited this screen The component retains the values that the user specified and doesn’t update the values to reflect changes made on previous screens.
          Refresh inputs to incorporate changes elsewhere in the flow

          The component updates the user-specified values to reflect changes made on previous screens.

          If you pause and then resume the flow, the flow retains user-specified values only in Checkbox, Checkbox Group, Currency, Long Text Area, Multi-Select Picklist, Number, Password, Picklist, Radio Buttons, and Text components.

          Specify Another Component’s Behavior with the In Progress Output Attribute

          When a user clicks an action button, the In Progress attribute for the associated screen action is set to true. When the action completes, the In Progress attribute is set back to false.

          Use the In Progress attribute to specify another component’s behavior. For example, use it to disable a screen component while the action is running. Set the value of the Disabled field on the component to the In Progress attribute. When In Progress is true the Disabled field is also set to true. When the action completes and In Progress is set to false, the disabled field is also set to false.

          Considerations

          • If a user runs a flow with an Action Button component in a web browser, the outputs of the action associated with the component are available to the browser. Don’t share sensitive information as the output of an Action Button component.
          • Autolaunched flows that include Wait elements or subflows with Wait elements aren’t supported as Action Button actions because the flow won’t resume after a Wait element.
          • Action Buttons aren’t supported in Repeater components.
          • Launching a flow with an asynchronous path isn’t supported.
          • If a flow launched from the action button doesn't have fault paths, and an error occurs, a generic error message shows under the action button. To show a helpful error message to users instead, add fault paths to the launched flow. On each fault path, set an output variable to {!$Flow.FaultMessage}. Then, on the flow screen with the action button, add a Display Text component that's conditionally hidden and contains a helpful error message along with the fault message variable.
            Note
            Note Even if a Display Text component content contains an error message, screen readers don’t announce the content as an error message.
          • If an input or output variable in the screen action’s autolaunched flow is a record variable, and you change a field name on the object, the new field name isn’t reflected when you refresh the inputs and outputs.
          • If an input or output variable in the screen action’s autolaunched flow is an Apex variable, and you change the structure of the Apex type, those changes aren't reflected when you refresh the inputs and outputs.
           
          Loading
          Salesforce Help | Article