This page covers:
Related pages:
Setup Many2Many in a Flow
Organizations sometimes choose to include the M2M component in a screen flow in addition to or in lieu of adding it to a Lightning page.
To set up the Many2Many Lightning Component in Flow, navigate to “Setup”.
Using the Quick Find search bar, type “Flows”.
Select “Flows” under Process Automation and click “New Flow”.
Select “Screen Flow” to add M2M to a screen flow guiding the user to tag records while navigating through the flow screens.
On the Flow Builder, drag the “Screen” element directly onto the interface where the “Start” is located.
Click on “Flow Label” on the “New Screen” pop-up to edit the screen properties, including the Label and API Name.
Search for the “TaggingUI” component in the “Custom Components” section and drag and drop it under the “Flow Label”.
On the right-hand side, complete the following fields(asterisked fields are required).
API Name: TaggingTool
Add Tags?: {!$GlobalConstant.True}. Setting this field as TRUE enables users to add tags
Remove Tags?: {!$GlobalConstant.True}. Setting this field as TRUE enables users to delete tags
To identify the “Tag Settings ID”, go into the Tag Settings object and select which record to display in the Lightning component.
In the address bar of the Tag Setting record, copy and paste the unique record ID that displays after the object API name.
Return to the “New Screen” pop-up interface and click “Done”.
In Flow Builder, click on “Start” and drag the white circle that appears below the icon until it forms an arrow to connect with the “Screen” component.
Click “Save” and “Activate”.