Add Many2Many to a Screen Flow
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ā.