Use case: Universal Container would like to allow the Marketing team to mass update the Industry on Lead, rather than do it one by one.
Inline editing in List View is a good option, however, inline editing does not support multiple record types in a list view, and not all fields are supported for inline editing, so creating a function to mass update would be preferred and faster.
Solution: implement Quick action for List View.
Solution: implement Quick action for List View.
Note: this will add the button to all list views, except Recently Viewed, and you can't hide this button from a specific list view, or make the button only visible to a specific list view or user profile.
1. Create New Action
From the Setup menu, navigate to the Lead object, look for the Buttons, Links, and Actions menu.
Click the New Action button, enter/select the following values:
Add the Industry field and remove all other fields.
1. Create New Action
From the Setup menu, navigate to the Lead object, look for the Buttons, Links, and Actions menu.
Click the New Action button, enter/select the following values:
In some cases, you may need to Predefined Field Values for selected fields for users' productivity, but in my use case, it is not required.
2. Add button to the layout
Stay in the Lead object, click Search Layouts for Salesforce Classic menu, then click Edit under the arrow on List View. Change Industry should be available under "List View Actions in Lightning Experience"
Select the action and click the add arrow button.
3. Lead tab
Click the Lead tab, you need to select a view, such as My Unread Leads, or any list view created, except Recently Viewed. You should see the "Change Industry" button, you maybe need to click the arrow button to show more buttons available, this is because it only the first 3 buttons shown on the list page.
4. Select records
2. Add button to the layout
Stay in the Lead object, click Search Layouts for Salesforce Classic menu, then click Edit under the arrow on List View. Change Industry should be available under "List View Actions in Lightning Experience"
Select the action and click the add arrow button.
3. Lead tab
Click the Lead tab, you need to select a view, such as My Unread Leads, or any list view created, except Recently Viewed. You should see the "Change Industry" button, you maybe need to click the arrow button to show more buttons available, this is because it only the first 3 buttons shown on the list page.
4. Select records
Select a list view, but not the default "Recently Viewed", then select multiple lead records, up to 200 records from the list view.
Click the "Change Industry" button, and select an industry from picklist values, this will update the industry from all Leads selected. Click the Save button, and then the OK button to confirm.
Now, all Leads selected earlier will be no longer selected and Industry value is updated.
Extra
Click the "Change Industry" button, and select an industry from picklist values, this will update the industry from all Leads selected. Click the Save button, and then the OK button to confirm.
Now, all Leads selected earlier will be no longer selected and Industry value is updated.
Extra
If you would like to make "Banking" the default value, go back to your action, and set the Predefined Field Values.
very helpful but this doesn't work as soon as you have record types :( too bad!
ReplyDeleteIt will work if you add the record type as a filter on the list view.
Deletevery helpful but this doesn't work as soon as there are record types..too bad :(
ReplyDeleteIt will work if you add the record type as a filter on the list view.
Deleteit appears that Winter '20 has moved things in Lightning Experience: in Step 2, when you click Search Layouts, there is no "ListView" there and no "Edit" for it.
ReplyDeleteIt is under "Search Layouts for Salesforce Classic"
DeleteDoes anybody know the reason why it is now under "Search Layouts for Salesforce Classic" ? If it is mandatory (seems to me) to show the button in Lightning?
Deleteyes, even it say "Search Layouts for Salesforce Classic", but this is applicable for Lightning too.
DeleteHi Johan, thanks for sharing this info. Do tou have any idea how can we use this to send list email on a custom object?
ReplyDeleteI think you need to build visualforce for that, not sure if Flow can achieve it too
DeleteHi,
ReplyDeleteHow can we do when "action type" is Lightning Component. And to display that Action button on list view page
its very useful....but I just wanted to set the value bydefault is banking...is it possible...???
ReplyDeleteyes, you can set the Predefined Field Values
DeleteHello @johan,
ReplyDelete"List View Actions in Lightning Experience" is not available on Product2 search layout. Any reason ? or how we can add action on Product2 list view.
I am just aware too, usually standard object have their own behavior, you can check with Salesforce support to confirm
Delete