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.

  1. To set up the Many2Many Lightning Component in Flow, navigate to ā€œSetupā€.

  2. Using the Quick Find search bar, type ā€œFlowsā€.

  3. Select ā€œFlowsā€ under Process Automation and click ā€œNew Flowā€.

  4. Select ā€œScreen Flowā€ to add M2M to a screen flow guiding the user to tag records while navigating through the flow screens.

  5. On the Flow Builder, drag the ā€œScreenā€ element directly onto the interface where the ā€œStartā€ is located.

  6. Click on ā€œFlow Labelā€ on the ā€œNew Screenā€ pop-up to edit the screen properties, including the Label and API Name.

  7. Search for the ā€œTaggingUIā€ component in the ā€œCustom Componentsā€ section and drag and drop it under the ā€œFlow Labelā€.

  8. On the right-hand side, complete the following fields(asterisked fields are required).

    1. API Name: TaggingTool

    2. Add Tags?: {!$GlobalConstant.True}. Setting this field as TRUE enables users to add tags

    3. Remove Tags?: {!$GlobalConstant.True}. Setting this field as TRUE enables users to delete tags

  9. To identify the ā€œTag Settings IDā€, go into the Tag Settings object and select which record to display in the Lightning component.Ā 

  10. In the address bar of the Tag Setting record, copy and paste the unique record ID that displays after the object API name.

  11. Return to the ā€œNew Screenā€ pop-up interface and click ā€œDoneā€.

  12. 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.

  13. Click ā€œSaveā€ and ā€œActivateā€.