Salesforce Fact #553 | Using same screen flow as quick action and list view action

Suppose we have a screen flow which needs to be used as both quick action and list view action for the same Sobject. We need to create two actions, one is quick action and another is list view button. In order to distinguish the context, we can make use of the 'ids' and 'recordId' variables.

Both the variables are available for input and when the screen flow is called from quick action, ids is blank and recordId has the recordId. When it is called from the list view button, recordId is blank and ids holds the selected record Ids.

Attached are the screenshots.








Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow