15
votes
Accepted
How to show a screen flow as a Listview button on any object?
As of today (Spring 22), there isn't a true equivalent of the Flow Quick Action for List Views, per se.
You can launch a Flow from List Views, however.
Get the Flow's URL (you can see it when you ...
10
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 ...
9
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.. ...
9
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 ...
8
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 ...
8
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 ...
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 {...
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 ...
7
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('...
7
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 ...
7
votes
Accepted
How to pass selected record Ids from list view to flow URL?
I figured out the issue. In the button URL I don’t need to pass any flow parameters. In the flow, I should have a collection variable called ids. You cannot use any other name other than ids.
Please ...
6
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,...
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 ...
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, ...
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 ...
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 = ...
6
votes
Accepted
How to put "List View Actions in Lightning Experience" into metadata?
release notes of 44.0 API saying that lightning list view actions are mentioned in massQuickActions tag in searchLayout section of object. Example from documentation
<?xml version="1.0" encoding="...
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 ...
6
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 ...
5
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?
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!
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 ...
5
votes
List view filter criteria via Apex or Query or API
You can access the ListViewFilter via the Metadata API ListView. Unfortunately ListView isn't currently one of the Supported Metadata Types in the Apex Metadata API.
The Apex Wrapper Salesforce ...
5
votes
Accepted
Lightning List Vew Search Not Returning Expected Results
The difference between two searches are - List View Search (available from Winter '19) vs. Global Search.
Global Search will attempt to search all those records in an Object to which the User has ...
5
votes
Accepted
I'm getting this error: LWC component's @wire target property or method threw an error during value provisioning
Welcome to SF Stack Exchange.
You are likely getting this error because an error must have occurred during your wire process.
From the documentation:
data (Any type)—The value supplied by the adapter....
4
votes
Accepted
Lightning: Get list view records
Bit of a shot in the dark, but try calling setFilterId on your StandardSetController to get more deterministic behavior.
public static final String DESIRED_LISTVIEW_LABEL = 'All';
public SomeClass(...
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://[...
Community wiki
4
votes
Accepted
List view in Lightning
It looks to me like you are attempting to use force:navigateToList etc outside of S1/Lightning Experience? If you are using your own custom .app then your code is responsible for handling those events ...
4
votes
Hide/Remove "Recently viewed Accounts" list view
Without writing Visualforce to override both the Accounts Home tab and the Accounts List View, it is impossible to hide or delete this list view, as it has a standard sharing model, cannot be edited, ...
4
votes
Hide/Remove "Recently viewed Accounts" list view
You cannot customize the standard tab in that way. However, you could create a custom Visualforce Tab to replace it.
(1) If you want to take that route, first create the following Visualforce Page:
&...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
list-view × 457apex × 63
visualforce × 61
lightning × 42
custom-button × 37
lightning-aura-components × 30
lightning-experience × 24
lightning-web-components × 23
custom-object × 21
metadata-api × 18
list-button × 18
javascript × 17
lightninglistview × 17
filters × 16
quickaction × 13
list × 12
visual-workflow × 11
permissions × 11
standardsetcontroller × 11
metadata × 10
soql × 9
administration × 9
tab × 9
community × 8
case × 8