Set Up Many2Many for Salesforce Mobile
This page covers:
Related pages:
Set Up Many2Many for Salesforce Mobile
Many2Many can be set up from the web by following the instructions provided in Create a Tag Setting. Additional configuration is needed to optimize Many2Many for mobile users.
Object-Specific Action vs. Global Action
System Administrators have the option to set up Many2Many for mobile either from an object relevant to their organization’s use case or as a Global Action. Here are some key differences between Object-Specific and Global Actions to guide you in deciding which is most appropriate for your use case.
Object-Specific Action | Global Action |
---|---|
Added to record detail pages as they are associated with a specific object. | Can be added anywhere actions are supported, including record detail pages or Chatter groups. |
Create new records and can specify relationships to other records. | Create new records without any relationships to other records. |
Create an Object-Specific Action
First things first: Ensure that your Tag Settings are set up correctly.
Navigate to the Object Manager from the Setup interface and select the object where M2M will be displayed. In our example, we’ll display it on the Account object.
Navigate to “Buttons, Links, and Actions” on the left-side pane and click “New Action”.
Complete the fields as shown below. Please note the following fields are mandatory:
Action Type: Lightning Component
Lightning Component: tag:TaggingUI
Height: 250px. This is the default value and may be customized.
Label: Tag Contact to Account (or whatever the action is that you are configuring).
Name: Tag_Contact_to_Account. This automatically populates when “Label” is inputted.
[Optional] Customize the “Standard Label Type”, “Description”, and “Icon”, and click “Save”.
Navigate to “Page Layouts” and click on “Mobile and Lightning Actions” to drag and drop the Action you created in the Salesforce Mobile and Lightning Actions section (“Tag Contact to Account” action in our example).
Create a Global Action
First things first: Ensure that your Tag Settings are set up correctly.
Navigate to the setup interface and type “Global Actions” in the “Quick Find” box. Select “New Action”.
Complete the fields in the “Enter Action Information” pop-up:
Action Type: Lightning Component
Lightning Component: tag:TaggingUI
Label: Many2Many (or something specific to your use case, such as “Tag Countries”).
Name: Many2Many (or if customized, something like “Tag_Countries”).
[Optional] Customize the “Standard Label Type”, “Description”, and “Icon”, and click “Save”.
Return to the setup interface and navigate to the “Object Manager” to select the Target Object where you’d like to display the M2M component.
Navigate to the Page Layout of the Target Object and click into “Mobile & Lightning Actions” where the Global Action you created will be displayed.
Drag the Global Action to the “Salesforce Mobile and Lightning Experience Actions” header.