20 votes
Accepted

Custom List View to display VF Page

You have a few options, you could use an apex:enhancedList on your Visualforce page, which is covered in the documentation here. <apex:page> <apex:enhancedList type="Case" height="300" ...
user avatar
  • 13.2k
8 votes

REST API List View Results - 25 record limit?

I believe the documentation is just not updated for the REST API. I took a cue from Daniel's answer and tried to see what would happen if we pass the properties in the parameters of the rest query.. ...
user avatar
  • 4,313
8 votes

Custom List view buttons in the lightning environment

You can create a Visualforce page using the standard list controller, and define it as a list button. Refer this link: Adding Custom List Buttons using Standard List Controllers These display as ...
user avatar
8 votes
Accepted

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

As far as I know, we cannot use {!GETRECORDIDS($ObjectType.Account)} to redirect to a Lightning component via URL. There is another alternative using a Visualforce page, whereby the VF processes the ...
user avatar
  • 3,205
8 votes
Accepted

How do I create a Lightning web component that shows all the custom list views of an object?

Take a look into the lightning/uiListApi module. It has below functionality - Get list view records and metadata for a list view by API name import { LightningElement, wire } from 'lwc'; import {...
user avatar
7 votes
Accepted

How to get "id" of an enhanced list view?

Not quite sure I've understood you correctly, but for your first requirement you can actually retrieve a list view ID in Apex by using a StandardSetController for the object in question: Database....
user avatar
7 votes

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

Kudos to @SFDCGOD for suggesting this. I was so intrigued by his suggestion, I gave it a try. First, I created resources for each of the Javascript files (FileSaver.js and jszip.js) and then created ...
user avatar
7 votes

Custom List view buttons in the lightning environment

This might be helpful - https://developer.salesforce.com/blogs/developer-relations/2016/09/take-the-first-steps-ways-you-can-replace-javascript-buttons.html You can create a Lightning component to ...
user avatar
6 votes
Accepted

New button does not appear on the list view in Salesforce1

There is 1 important thing you will need to check: Make sure your visualforce page which overrides the "New" action on the opportunity is marked as "Available for Salesforce mobile apps". To set this,...
user avatar
  • 2,366
6 votes
Accepted

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

You can do following to achieve this: Add following javascript in your page FileSaver.min.js Blob.js jszip.min.js Pass All Id's to controller and just get there data by getContetnAsPdf one by ...
user avatar
  • 1,018
6 votes
Accepted

Default ListViews in Lightning

From this Salesforce help page, the answer appears to be "no": List views display and behave differently in Lightning Experience. You don’t go to a new page to create a list view. Instead, ...
user avatar
  • 40.3k
6 votes
Accepted

Create custom 'take ownership' list view button in Lightning

JavaScript buttons don't work the way you expect, and I'm pretty sure that the code you're trying to use won't work. That said, you have an alternative you can use (tested/verified). First, create a ...
user avatar
  • 429k
6 votes
Accepted

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

List view fetching for custom metadata types are bit tricky. If you retrieve a List View on a Custom Setting/Custom Metdata along with the Custom Setting/Metadata object when using Metadata API ...
user avatar
6 votes
Accepted

How to create the list view in salesforce

You need to add a formula field to the custom object Type checkbox Is_Created_by_Running_User__c formula: CreatedById = $User.Id Then your filter in the listview is Is_Created_by_Running_User__c = ...
user avatar
  • 61.4k
6 votes
Accepted

Possible to redirect to a page that uses standardSetController from another Visualforce page?

You can't redirect in Apex, because redirects require PageReference, and PageReference doesn't support having a single query string key with multiple values. However, you can do this in JavaScript by ...
user avatar
  • 429k
6 votes
Accepted

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

It's a limitation of the addError interface. You are allowed at most one record-level error and one field level error per field. Adding a subsequent error will replace the original. This is also not a ...
user avatar
  • 429k
5 votes
Accepted

Limiting List Views by Role

This is how the role hierarchy works. Given Alice in role A, Bob in role B, and Charlie in role C, where both B and C report to A, gives the following sharing profiles: Role A includes Alice Role B ...
user avatar
  • 429k
5 votes
Accepted

Parsing ListViews columns from the Metadata API

From what Ive been able to gather the names that appear in the Metadata API for ListView columns are the backend Oracle DB names and there is no public API for translating them to the salesforce ...
user avatar
  • 298
5 votes
Accepted

Can List view parameters be passed in via the URL?

You can, actually, change the list view criteria dynamically. Start by pulling up the list view you want to call and clicking into the Edit screen for it. Here you need to do 2 things: Copy the URL....
user avatar
5 votes

Can List view parameters be passed in via the URL?

One thing you can do is define your list and filter and then call it using URL. https://na3.salesforce.com/00Q?fcf=00B90000008505L here fcf=XXXX is the id of list view. Note that the criteria is ...
user avatar
  • 8,979
5 votes
Accepted

Filter list view - comparing custom user lookup to logged in user

Create a formula field (IsItemOwnerLoggedInUser?) with return type as checkbox and set it to true for currently logged in user. Item_Owner__c == $User.Id Create a new view and in the filter criteria,...
user avatar
5 votes

Default ListViews in Lightning

You can also choose a view from the dropdown next to the tab in Winter 17'. Took my team a bit to notice!
user avatar
5 votes
Accepted

Run a mass action on multiple records in a list view

List View Buttons Not Available in LEX To Answer the statement "All my list button aren't available in lightning experience", any onclick javascript button that you have in salesforce classic will ...
user avatar
  • 1,969
5 votes

List view filter criteria via Apex or Query or API

You can sort of do this via API and apex code, depending on what exactly you're looking for. private static String filterCriteria(String authToken, String objType, String listView){ system.debug('...
user avatar
  • 348
5 votes
Accepted

Can I use getListUi method with Related List Views?

Currently, no. That @wire adapter does not allow relative parent (flexipage record Id). On the roadmap (no ETA) is the lightning:relatedList base component, so whenever that is released we might be ...
user avatar
  • 3,515
4 votes
Accepted

jQuery: How to wait for Salesforce to finish rendering?

Presumably you are aware that Salesforce is making this sort of code harder to add - see End of javascript sidebar hacks?. If you can detect (e.g. by the presence of an element of a certain class) ...
user avatar
  • 129k
4 votes
Accepted

Testing Winter '15 - New Clause USING SCOPE values

as you mentioned USING SCOPE is new with Winter 15 .. and you can use it with API version 32.. If you are using Workbench, select api version 32 when you login or change your api version to 32 in ...
user avatar
4 votes
Accepted

Filter By Owner in list views Not working

From SF: The Owner field on the detail object is not available and is automatically set to the owner of its associated master record. Custom objects on the detail side of a master-detail ...
user avatar
  • 1,226
4 votes
Accepted

The CORRECT way to redirect to a ListView from StandardSetController?

Whoa. This works: public PageReference listView() { return new ApexPages.Action('{!List}').invoke(); //System.PageReference[/a09?fcf=00B24000004cfLK] } But is it documented?
user avatar
4 votes

How to view a Custom Object's List Views without having a Tab

To access a Custom Object's List Views without having a Tab for the Custom Object, you need the Custom Object's Key Prefix. If you have the Key Prefix, you can use the following link: https://[...

Only top scored, non community-wiki answers of a minimum length are eligible