Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [list-view]

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

Filter by
Sorted by
Tagged with
33 votes
2 answers
41k 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 ...
Joe's user avatar
  • 3,421
8 votes
2 answers
37k views

Custom List view buttons in the lightning environment

I have a requirement where I want to have a custom list view button with an ability to perform a mass custom action in the Lightning environment. I do not see an option to add lightning quick-action ...
Darshan Chhajed's user avatar
3 votes
1 answer
1k 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 ...
Adrian Larson's user avatar
  • 150k
15 votes
3 answers
14k 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
max's user avatar
  • 2,419
5 votes
2 answers
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 ...
Jay-Nicolas Hackleman's user avatar
5 votes
3 answers
21k views

Get selected records from Lightning list view custom button: URL addressable

I am trying to select records from list view custom button. I want to pass the selected record ids in the paramaters. I tried the below and its not working for me. /lightning/cmp/c__TestURLfor?...
pragii's user avatar
  • 65
4 votes
4 answers
23k 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 ...
Shumon Saha's user avatar
  • 4,632
10 votes
2 answers
5k 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 ...
Ashwani Kumar's user avatar
9 votes
3 answers
17k 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?...
BarCotter's user avatar
  • 12.3k
7 votes
1 answer
27k views

How to show a screen flow as a Listview button on any object?

Actually, I know how to show a screen flow in custom action but wanted to know - Is there any mean to show a screen flow as a list view button? and if yes then how? Thanks in advance.
Amit Kumar's user avatar
4 votes
3 answers
11k views

Default ListViews in Lightning

Is there a way to give a profile a different default list view then "Recently Viewed" in Lightning?
ZRich's user avatar
  • 57
4 votes
1 answer
2k 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 ...
Chicho's user avatar
  • 485
3 votes
3 answers
5k 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 ...
user988's user avatar
  • 707
2 votes
2 answers
2k 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 ...
Uwe Heim's user avatar
  • 28.4k
2 votes
1 answer
825 views

visualforce page to list cases by contact using 'case.AccountId' for Person Account - Lightning Design

I have a business use case demand to show a list of Cases for the current associated Contact on the Case Feed in Service Console. I was able to achieve this with the below VisualForce Page: I was ...
SandyAdmin's user avatar
18 votes
1 answer
30k 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.
Varun's user avatar
  • 3,093
12 votes
5 answers
3k 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 ...
mohammed azarudeen's user avatar
11 votes
2 answers
29k 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 ...
emroc's user avatar
  • 481
5 votes
1 answer
1k 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 ...
Jonas Schmid's user avatar
4 votes
2 answers
27k views

Retrieve/Deploy a custom metadata type's list view?

I'm trying to deploy a list view for a custom metadata type using the Force.com Migration Tool, but I am unable to locate the ListView to include in my package.xml retrieve. I have deployed many ...
Brent Bowers's user avatar
  • 3,144
4 votes
1 answer
894 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: ...
Nico1969's user avatar
4 votes
1 answer
7k 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, ...
Matt and Neil's user avatar
3 votes
0 answers
1k views

How can I get the selected listview id (or name) without using javascript

We have a listview button that executes javascript to obtain the currently selected listview id and passes that value to another VF page. We are planning on moving to Lightning soon and that will ...
user891859's user avatar
3 votes
1 answer
2k 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 ...
kurt's user avatar
  • 33
3 votes
1 answer
2k 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 ...
Ralph Callaway's user avatar
3 votes
1 answer
2k views

AddError on an object in a trigger is only displaying one of the errors in object list view

I have a trigger on an object, and in that trigger I am doing the following: List<ApexPages.Message> msgs = RecordValidator.isValidRecord(thisObj, criteria, matchingObjectUnionList.values()); ...
Tyler Dahle's user avatar
  • 2,709
2 votes
2 answers
3k views

Setting List View Parameters?

I know that it's possible to modify the filters on a Salesforce report by using URL query parameters like pv0=SOMETHING. Is there any way to do this with List views? What about with list views ...
Benj's user avatar
  • 11.2k
2 votes
1 answer
10k views

How to pass selected record Ids from list view to flow URL?

I have the below List Button URL configured in the Account object. https://myDomain.lightning.force.com/flow/Delete_Records?ListOfIds={!Account.Id} When I click the button in list view, it should ...
Krishnamurthy's user avatar
2 votes
1 answer
3k views

How to get selected records from list view

I'm using a Lightning Aura component and lightning:listView. I wanna get the selected record from lightning:listView when I select the record like below img. Successfully I get the selected record Id ...
Shinya's user avatar
  • 487
2 votes
2 answers
527 views

enhancedLists are not rendering properly inside jQuery UI tabs or tabPanel

Using apex:enhancedList tag inside jQuery-tabs or apex:tabPanel only renders the listView of default tab correctly. If I switch to another tab, I'm loosing the view. <apex:page controller="...
sam_s's user avatar
  • 966
2 votes
2 answers
4k views

Redirect to list view URL on custom object tab click

I'm trying to display the "list view" vs "recent item" by default when a tab is clicked on a Custom Object. I know how to do this for a Standard Object by creating a VF page and applying it to the ...
bbrooke's user avatar
  • 123
1 vote
3 answers
6k views

How can Lightning components be opened from a list view?

I am looking to add a custom button to the Account list view that opens a Lightning component. How can I do this?
Mossi2's user avatar
  • 469
1 vote
1 answer
3k views

hiding a div when clicking anywhere outside without using jQuery

Trying to create my own version of salesforce listviews in a Lightning Component, got to the point where I can open and filter the drop down list (based on lightning design system: Page Header opening ...
Poster's user avatar
  • 527
1 vote
0 answers
768 views

User List view in Napili template

I have a requirement to Show all the user who are able to access the Community built on the Napili Temaplate. There is a pre-existing page for the same named User List, i assume. But the URL is need ...
Ayush's user avatar
  • 11
1 vote
1 answer
160 views

Error "Failed to get metadata of listview foo_baz for entity Account. " when trying to search list view

I am trying to use 'search in list views' SOSL feature, but receiving the error mentioned in title. The query in itself is: FIND {fook} IN ALL FIELDS RETURNING Account(Id, Name USING LISTVIEW=...
dzh's user avatar
  • 4,145
1 vote
1 answer
405 views

Issues with List API in Read Only mode VF page

Currently we are using a custom list view Visual Force page button for mass actions to export data to excel sheet in salesforce classic. Objects and relations: Static List (Custom object with Master ...
Hemavantha Rajesh Varma Mudunu's user avatar
1 vote
1 answer
2k views

View and Delete Users List Views

We have recently removed the users rights to Edit/Create/Delete their own list view so that they will use the company shared list views. This unfortunately had people trying to stab us because we ...
Gunner1714's user avatar
0 votes
0 answers
412 views

Multiple list views in a tabbed page - only one renders

I have a visualforce page with a tab panel and included enhanced lists under tabs. Example: <style> .activeTab {background-color: #236FBf; color:white; background-image:none} ....
jaw999's user avatar
  • 1,315
0 votes
1 answer
159 views

Empty picklists when account is dragged to calendar to quickly create Event

There's a checkbox in Setup -> User Interface that allows you to drag Accounts from list views to calendar & quickly create events. When you drag them, a "balloon" pops up with all the fields (...
eyescream's user avatar
  • 24.1k
0 votes
1 answer
1k views

How to find public groups assigned to list view in apex?

We want to get a list of public groups assigned to list view in Apex code. We didn't found object/API which can provide this details.
Gaurav Patil's user avatar
0 votes
1 answer
3k views

Send list email from list view on custom object [closed]

Is there a way to send a list email from a list view of a custom object? @manjit5190 I am in Lightning list view. When I am looking at Contacts list views, I have the List Email option. Is there a ...
Michele Kleinhomer's user avatar
0 votes
2 answers
4k views

Why flow retURL is not working in lightning in second end screen

I have a simple flow in lightning which starts from a listview by checking multiple records and clicking a button to add the records to the flow. If the user does not select anything and clicks the ...
Thomas's user avatar
  • 2,298
0 votes
2 answers
3k views

How to disable inline edit in list view?

Please refer to the following screen capture: I would like to disable editing in list view for all users. However, I can't seem to find a resource for Salesforce Lightning. Can anyone instruct me on ...
ohseekay's user avatar
  • 195