Skip to main content
Group

Screen Flow Screen Action

Run autolaunched flows within your screen for more dynamic screen flows! No more context switching and navigating to different screens when a user enters key data. With Action Buttons and change triggered screen actions, your data model no longer dictates your Screen Flow UX

Within a screen flow, is it possible to clear input fields after a Flow Action has been completed? 

@Adam White

5 answers
0/9000

I am displaying a collection of records in a data table. When a user selects a record, the details of that record are displayed using a screen action component. The user can then check a box labeled "Add Comments", which reveals a text input where they can enter comments related to the selected record.

After entering their comments, the user clicks an "Action Button" labeled "Save Comments", which triggers an autolaunched flow to save the comments to the selected record.

My current challenge is this: After saving comments and returning to the data table to select a different record, the previously entered comments are still displayed on the screen. I would like to:

  1. Refresh or update the entire record collection displayed in the data table to reflect any new changes (i.e., newly saved comments).
  2. Clear all previously entered values (especially the comments field) from the screen flow when a new record is selected.
  3. Ensure that if the user selects the same record again later, all previously saved comments (including the newly added ones) are correctly displayed.

How can I achieve this functionality in the flow to ensure a clean user experience when switching between records? @Adam White @Eric Smith

3 answers
0/9000

Hi, I'm giving a ContactId, an AccountId and a collection of AccountContactRelation records as input to my action button. The idea was to have a subflow that outputs the record of an account contact relation so that I could get the multi select picklist that I want to add in the screen flow as a multi select picklist field but the record output variable wasn't showing as an option when adding a multi select picklist field to the screen. 

 

 

Map Action Output to Multipicklist Field or Variable?

 

 

 

The second thing I tried was to add a multi select picklist component to the screen and then define the choices returned by the action but the same happened. I can see the right multi select picklist values returned by the action in a display text, I just want to put them in a multi select picklist in the screen so that the user can change them.  

 

Captura de ecrã 2025-03-13 170128.png

 

 

 

 

For a little more context, I'm doing this in one screen because the user selects in a picklist the account (Contact -> Account relation) that he wants to change the multiselect picklist values. 

 

Thank you 

1 answer
  1. May 20, 2025, 4:44 PM

    Have you tried using a collection choice set that uses the output of the screen action as its data?

0/9000

I'm attempting to use the Action Button for the first time. It is working very well in a scratch org and it retrieves fine, however I am receiving an error when deploying to another org. 

 

It's stating that "The Action Button component is supported in Metadata API version 61.0 and later. To deploy this flow, update the API version". However, the flow API is set to 63. I've flipped it to 61 to test and receive the same error. 

 

I created a new scratch org with API 63, and a very basic test flow that has the action button calling an OOTB flow. Retrieved fine, but when I tried to force deploy it back to the same scratch org without touching it, I received the same failure message. 

 

Any advice?

1 answer
  1. May 20, 2025, 4:43 PM

    Unfortunately I believe you have to deploy the autolaunched flow and activate it before deploying the screen flow. Let me know if that works out

0/9000

Hello everyone!

 

I would like to use the outpout colleciton of the action button as the input collection for the datatable from UnofficialSF. Is it possible to achieve that? 

 

I was able to do that for the standard datatable. However this component is missing features like letting the user sort the column or edit fields. 

 

Best regards

Kah Seng

7 answers
  1. Eric Smith (Retired) Forum Ambassador
    Jan 19, 2025, 10:06 PM

    @Kah Seng Teh

    I've updated the combobox to now support Action outputs.  Check out the latest version FlowScreenComponentsBasePack. 

    https://unofficialsf.com/flow-action-and-screen-component-basepacks/

     

     

0/9000

Can an Action Button be configured to refresh an UnofficialSF datatable after the auto-launch flow has been completed? @UnofficialSF Discussion @Eric Smith

3 answers
  1. Eric Smith (Retired) Forum Ambassador
    Feb 4, 2025, 4:50 PM

    Many of the Datatable inputs are reactive include the header and the record collections.

    Your input collection for the Datatable should reference the Actions outputs directly, not a variable set by the action.

0/9000

When we trying to deploy flow with action button using CI/CD we get an error:

 

The "Request_TCO" action button doesn't exist on the same screen as the specified screen action and trigger.

2 answers
  1. Dec 12, 2024, 11:05 PM

    @Kiryl Kaliuta

     

    -ensure that the button (Request_TCO) is added to the Flow Screen in the UI

    -ensure the flow screen has an action, like a button, and is correctly linked to the action trigger

    -confirm that both the flow and any related action button are included in the deployment

    -verify Action Button in Lightning App Builder: If its part of a Record Page or App Page, ensure he button is part of the page layout or component and is being deployed

     

    if the same issue still persist, I would suggest deploying/validating it using changeSet or other tools you have. if its successful then I guess you have missing on your CI/CD

0/9000
2 answers
  1. Dec 12, 2024, 3:39 PM

    @Adam White Hi Adam, could you please help, when we trying to deploy flow with action button using CI/CD we get an error: 

     

    The "Request_TCO" action button doesn't exist on the same screen as the specified screen action and trigger.
0/9000

I have an action button a screen flow that collects a chosen product details, calls a sub-flow that creates the record, and then outputs some variables that i use for reactivity(for example the total number of product records after the creation)

After a few clicks of a button, the output vars stop coming in...

I checked the debug screen and can clearly see that variables are being processed and ready in the sub-flow for the output, but then I have the output variables on screen using reactivity and they just stop changing in the screen flow 

I'm guessing this is a reactivity issue, but I can't put my finger on what I'm doing wrong here handling reactivity and the action button. reactivity pretty much works on all the other components I'm using.

Would love to get some advice from someone that encountered something similar and can explain what is going on  

2 answers
  1. Oct 30, 2024, 10:57 PM

    Hi @Adam White i am stuck with the same issue with action buttons validation on input text is not working though it is evaluating formula but there is no error msg 

    in addition to that if you give component visibility based on a formula it's not working .

0/9000

In my screen shot below, I use the ADD FILE button to call a subflow and add the record on the right side.

To remove a record on the left side, I call that same flow to remove and update the collection.

 

However, I am not able to reference the same collection in the left table, so when using the remove button, the data is updated on the backend, but my collection is not updated on the front end.

 

I've seen in examples that you can have two separate action buttons on the same page call the same action so that this will work, however I get a duplicate api name error if i try and label the action the same in both action buttons.

 

Is there a workaround to having both action buttons update the same collection or is this not possible yet?

 

The end result should remove the record from the selected documents and move it back to the available documents. As noted, the data is updated on the backend, but cannot for the life of me get the collection to update on screen. 

How do I get two action buttons to update the same collection variable?

0/9000