Posts

Showing posts from March, 2025

Salesforce Fact #919 | Remove selected UT2A records using screen action

Image
In continuation of the last post related to screen action, we can extend the logic to remove a user from selected territories.  The subflow returns the UserTerritory2Association records for the input userId and in the main flow, the result is shown in datatable allowing the user to select a record and then proceed with the deletion. Attached are the screenshots. Note: For demonstration purpose, used the Territory2Id field for storing the territory label but it is not advised to follow.

Salesforce Fact #918 | Pass value from LWC to embedded screen flow reactively

Image
Suppose we have an embedded screen flow in LWC and we are passing data from lightning record picker in LWC to the screen flow and we want that the change in record picker is reflected in screen flow instantly. We can achieve the same using bit of LWC logic. Reference:  https://salesforce.stackexchange.com/questions/408371/how-to-dynamically-change-flow-embedded-inside-lwc Attached are the screenshots.