Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [list-view]

Use this tag when asking questions specifically related to salesforce List Views

29
votes
2answers
33k views

Creating a custom list-view button that handles multi-record selection

I would like to create a custom button for a list-view that applies the same action to all the selected records in the list view. For instance, in the Cases list-view there are the Change Status and ...
18
votes
1answer
24k views

Custom List View to display VF Page

Is it possible to display a VF page for a custom list view ? From the above, instead of those list columns I want to render a VF page containing a list of cases.
14
votes
3answers
8k views

Create a list view filter via apex

Create a list view filter via apex for a custom object that would then be available to all users. Is this even possible ? and if so please provide a code example Thanks
12
votes
4answers
1k views

Download Invoice PDF's On List View without saving to Notes and Attachment as a zip file

Scenario: Am having Invoice__c Object. On the list view I have download button to download the selected invoices PDF's. What my below code is doing is it is after fetching the selected records id's of ...
11
votes
1answer
3k views

Lightning: Get list view records

How can one get ALL the records from a list view in a visualforce page running in Lightning? (Since no checkbox for selecting are available) Similar old question. With an adaptation from that ...
9
votes
2answers
7k views

REST API List View Results - 25 record limit?

I can't seem to find this information anywhere, but it seems that Salesforce imposes a limit of 25 records to be returned from a list view results call to the REST API. Does anyone know if this is at ...
9
votes
1answer
659 views

How to package ListViews for Custom Metadata Types?

Is there a way to package ListViews for Custom Metada Types? I can't see these ListViews when trying to add them to a package, but maybe there is a workaround?
9
votes
2answers
2k views

lightning component in list view button

How to use a lightning component in list view button for a contact object. I want to perform some action on bulk using my lightning component. I can't see any option. I don't want to use ...
7
votes
2answers
5k views

Hide/Remove “Recently viewed Accounts” list view

Is it possible to hide the recently viewed accounts list view (drop down) from my users? I am referring to the "Recently viewed accounts" view in the picklist on the account landing page. It really ...
7
votes
3answers
8k views

Can List view parameters be passed in via the URL?

Is there any pattern for passing parameters into a list view? For example if I wanted to display Tasks with a Status of "In Progress" the URL could be something like: https://na3.salesforce.com/007?...
7
votes
2answers
84 views

Standard opportuny list and governor limit

This may be a simple question. I am trying to bulk update user selected opportunities. I was thinking of following a technique similar to the example in the online docs : "Mass-Updating Records with a ...
6
votes
3answers
5k views

New button does not appear on the list view in Salesforce1

I have started using salesforce1 app.I have full access to both Account and Opportunity objects.However,I can see new button on the list view page of Account but not on the Opportunity list view page,...
5
votes
3answers
6k views

Default ListViews in Lightning

Is there a way to give a profile a different default list view then "Recently Viewed" in Lightning?
5
votes
1answer
2k views

Default records per page on listviews

There seems to be an inconsistency in the default number of record per page on standard SFDC listviews. On one particular production org, I see that when I am logged in with a sys admin profile, the ...
5
votes
1answer
729 views

How to make sure an apex:enhancedList component displays checkboxes?

I use an apex:enhancedList component on a custom VF page and I want to make sure it always displays checkboxes in the left column, to enable selection of records. Unfortunately the checkboxes do not ...
5
votes
2answers
5k views

How do I control recursive Triggers with static variables and permit Mass Edit from List View

I have a pretty complicated issue with users mass editing record from the Enhanced list View and using static methods to control the flow of recursive triggers. In case you are not familiar, due to ...
5
votes
2answers
1k views

How to add the quick action on lightning List view Record page?

I have a object and i create a list button on object to delete the all records on click on button and add that button on record list view page, somehow that is working fine in salesforce classic but ...
4
votes
4answers
21k views

Calling Apex Class from Custom Button, And Then Refreshing List View

I have added a Custom Button to the List View of the Custom Object. What is the best practice of calling an Apex Class on click of the Custom Button, and refresh the List View after execution of the ...
4
votes
3answers
61 views

Switching one field for another in private list views

We have a formula field that we want to change to a text field. We know we can't do this directly, so we need to create a new text field, then we'd remove the formula field. What we'd like to do is ...
4
votes
1answer
5k views

Run a mass action on multiple records in a list view

According to the new release (Winter '17) is available run mass action on multiples records, but anyone how do it? All my list button aren't available in lightning experience
4
votes
1answer
5k views

Customize “Recently Viewed” list views

I have been asked to customize the generic "Recently Viewed [object]" list views that are present for Salesforce objects (note: I do not mean the [object] Tab Search Layout.) The only problem is that ...
4
votes
1answer
89 views

Why Salesforce REST API List View Describe Method returns extra values in columns list?

When I try to execute this request GET /vXX.X/sobjects/{sobjectType}/listviews/{queryLocator}/describe which is described in documentation https://developer.salesforce.com/docs/atlas.en-us.api_rest....
4
votes
1answer
837 views

Parsing ListViews columns from the Metadata API

I am trying to parse ListViews from the Metadata API to try to show the content I have locally. The documentation I found explains some of the fields, but not in details. For example take a simple ...
4
votes
1answer
51 views

List view error 1796249105-372943 (614379870) in Lightning Winter '19

Since the Winter '19 release, we have been seeing the following Salesforce error when trying to run some list views in lightning. It happens for either custom objects or standard objects. A ...
4
votes
1answer
766 views

Custom button on list view

I am trying to build a button in the list view to: Change case ownership to the current user Change the case status to work in progress I have the following code in the detail page that works fine: ...
4
votes
1answer
1k views

custom button visibility list view

I have addded a custom button to list views in the Contact object. I have multiple list views but I just need to show the custom button in some of the list views and it should be hidden in the ...
4
votes
0answers
555 views

Is there any way to deploy list views for custom settings through Metadata API?

Currently trying to deploy a list view created for custom settings through the 'Manage' button through the Metadata API. <?xml version="1.0" encoding="UTF-8"?> <CustomObject xmlns="http://...
3
votes
3answers
4k views

Remove buttons from Listview in VisualForce Page

I created this page and put it into an iframe on the Salesforce homepage. Is there anyway I can hide these buttons at the top? I have no problem with it being there except that when I click new case ...
3
votes
2answers
3k views

How to get “id” of an enhanced list view?

Please provide some idea on the below queries, How many ways we can get an id for an enhanced list view other than from a standard view?. If we need to create an enhanced list view for a custom ...
3
votes
2answers
932 views

How to read a ListView (restricted Visibility to me) with APEX MetadataService.cls?

During my work on this question, I'm trying to retrieve a ListView using this code: public class SFSEMetadataListView { public static void readListView() { MetadataService.MetadataPort ...
3
votes
1answer
2k views

Limiting List Views by Role

Our Salesforce org has the following role hierarchy: The lead list view is shared to the following roles: For some reason Phone Advisor can see list views that should only be shared with RA Leader ...
3
votes
1answer
72 views

How to create List View for Service Contract with only My Records?

I want to create a custom list view for showing only my created records. As in Account or any other sobject there is an option of "Filter By Owner:" under "Step 2. Specify Filter Criteria" section but ...
3
votes
1answer
633 views

Testing Winter '15 - New Clause USING SCOPE values

I am trying to test "Using Scope" on a custom object, orders which has a MD relation to Account. I'm trying to filter a list view of Orders to show only by User's territory, like we have in Account ...
3
votes
3answers
819 views

Custom object list view filter criteria does not return results

This is a pretty basic question but I have a list view that I created on a custom object that should be returning results but is not. Object B has a lookup field to Object A,. So lets say I have 2 ...
3
votes
1answer
1k views

How to create a list view the returns all the records related to a current user?

Question Assuming an object with a user lookup, how can I create a list view (standard, not VF) that returns all objects related to the current user? Background We've got a compliance object, and ...
3
votes
1answer
245 views

Lightning Components: are standard list views overridable by Flexipages or Lightning Components yet or on the roadmap?

The current list-views in LEX are in some respects less powerful than their predecessors in Aloha: no more checkboxes and multi-edit no more inline-edit for the Name-field massive padding is causing ...
3
votes
1answer
201 views

Display Campaign in Opportunity/Donation List Views

I am trying to modify a "view" for donations, so that I can see the Primary Campaign Source. When I clicked "Edit" to edit the view, I don't see campaign in the list of fields. Is this possible? ...
3
votes
2answers
4k views

List view button to pass selected record ids on to new record for custom object

I am trying to create an easy way to mark attendance. I have a custom object "students" as well as a custom object "attendance." The attendance object is related to the student object by a lookup ...
3
votes
1answer
76 views

Custom Case Change Due Date button

I'm trying to create a button that would change the Due Date field of a selected case in a List View. I'm stuck on the URL, since this is a mass change type would there be a custom URL that would be ...
3
votes
1answer
90 views

Query/List View working principle

The list views in salesforce are essentially queries running in the back end. So my question is when a user does the following query/or access a list view that implements the same. SELECT id FROM ...
3
votes
1answer
464 views

How to retrieve what filters were set on a listview using API?

I'm trying to integrate Salesforce in another system and it's required to filter these, but the client should be fully free to use any filters he wants. Using a listview and settings its filters, he's ...
3
votes
1answer
2k views

The CORRECT way to redirect to a ListView from StandardSetController?

From a List Button or Visualforce Page, I wanna redirect to a ListView after. Common, right? Life is great when we're dealing with Standard Controller: using view() method. What is the correct, ...
3
votes
1answer
3k views

unable to delete listview

I am trying to delete a user's list views that they created. The user no longer wants the list view. I've logged in as the user via grant login access and I go to the list views and the only option is ...
3
votes
1answer
6k views

custom list view that allows new filter parameters

I'm looking to create a VF page with a list of records and dynamic filter criteria. The user needs to be able to filter the records based on various criteria and also save those filters for future use....
3
votes
2answers
1k views

Custom Logic in Standard List View

Our client wants to use the standard Contact List View functionality to display Lists of Contacts. Let's say that there needs to be a List View called 'My Special Contacts'. The way to determine a ...
3
votes
2answers
3k views

How to remove buttons on List View for Community?

We don't want to let our community users to use some custom buttons. Is there a way to hide or remove custom buttons on List View for Community?
3
votes
1answer
931 views

List View Visibility

I have a page where I am trying to show which ListViews a Project is in. I can get the data I want in the Developer Console by querying ListView. However, when I try to import the following query to ...
3
votes
0answers
384 views

“Add to Campaign” button at Contact Details Page

I'm trying to customize my contact layout and our communications department wants to have "Add to Campaign" button right at Contact Details Page Layout. I tried to add standard "Add to Campaign" ...
3
votes
0answers
72 views

Lightning Experience: Can standard Listview Charts be shared and deployed as Metadata?

I've created several Charts in Standard Listviews on Tabs in LEX. So far they work as expected and look like this: Now logging in as an other user I've noticed that the charts are not available. Only ...
3
votes
0answers
2k views

User can't edit their own list views after profile change

Strange issue encountered today: I updated a user from System Admin to a different custom profile, making sure to give them the "Create and Customize List Views" permission, but for some reason now ...