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
13 votes

Lightning Component Visibility filter to check if value is null

use <aura:if> to render the component based on the input of the text area. Pseudo code. <aura:component> <aura:attribute name="strTest" type="String"/> <aura:if isTrue="{!...
Samir's user avatar
  • 2,679
10 votes
Accepted

View code in Managed package

Take a look at An Introduction to Packaging: Implications of Managed Packages on Source Code If someone installs a managed package, they don't get access to all the source code of that package. For ...
Adrian Larson's user avatar
  • 150k
8 votes
Accepted

Lightning Component Visibility filter to check if value is null

Use the empty string value '':
sfdcfox's user avatar
  • 494k
5 votes
Accepted

Can a managed package query and list all the classes installed in a subscriber organization?

If the class you're interested in looking for is global, you can save a query by using Type.forName(namespacePrefix, className). In all other cases, you should be able to at least query for the given ...
sfdcfox's user avatar
  • 494k
5 votes

lightning component visibility based on profile

You can conditionally show/hide components on the page by setting the component visibility. Select your component and in the properties panel you have the flexibility to show/hide based on a field in ...
Lightning Evangelist's user avatar
4 votes
Accepted

Custom Report not showing records visible to users

It would seem that Custom Report Types drilled down to the Users Role DO NOT respect the sharing rules ADDING records that the role would not normally see with the Hierarchy alone... Idea: https://...
Eric's user avatar
  • 54.2k
4 votes
Accepted

Are lightning component visibility filters deployable? Where can I find them in metadata?

It can be found in flexiPages folder in metadata. And inside the flexiPage you can see it: <flexiPageRegions> <componentInstances> <componentName>...
Dmitriy Yurkin's user avatar
3 votes

sfdx force:source:pull doesn't retrieve FlowVisibilityRule

Ok, when I set the API version to 47.0 and rebuild it in a newly created scratch org, the visibility rules for the screen components have been pulled. This is confirmed by looking at the Metadata ...
mluecke's user avatar
  • 191
3 votes

How to make a Lightning Component in a Lightning record page visible to a subset of users?

If you don't mind add to the User object, just create a custom checkbox field on the User called Beta Tester and then you could conditionally show components on the page based on this true/false ...
Brian Miller's user avatar
  • 5,222
3 votes
Accepted

Tab visibility (access) to more than one profile at the same time

This is only possible upon creation. After you create a new tab, the second screen opens. Here you can choose for which profiles the tab is hidden, default off or default on. I don't think there is ...
nesnaj713's user avatar
  • 248
3 votes

is it possible to show files linked to detail record on the master record?

You need a Trigger on ContentDocumentLink: To customize file sharing behavior, define an Apex trigger for the ContentDistribution or ContentDocumentLink objects. The ContentDistribution object ...
o-lexi's user avatar
  • 3,094
3 votes
Accepted

Case comments visibility

Case Comments are affected by several settings. For internal users, only the case's sharing is considered. If the user can see the case, they can see all of the case comments, published or not. For ...
sfdcfox's user avatar
  • 494k
3 votes
Accepted

Hide Objects while having permissions

Depending on your use case, you can probably just turn off CRUD permission for Accounts. Apex can run in "system mode", where it ignores normal security (field, object, and record security). Simply ...
sfdcfox's user avatar
  • 494k
3 votes
Accepted

Restrict record visibility based on a field (even for the record owner)

Summarizing the key points from the comments as an answer (so those looking for an answer don't have to go thru all the comments). Record ownership is at the core of SF record access capabilities and ...
arut's user avatar
  • 5,281
3 votes
Accepted

Is there a way to hide/show columns in lightning-datable based on screen size?

You can detect the user client's form factor, then decide what fields to display based on that: import FORM_FACTOR from '@salesforce/client/formFactor'; ... const columns = { Large: [ { ... }, ... ]...
sfdcfox's user avatar
  • 494k
2 votes

How do I make a page layout Visualforce section visible to select users?

I see two ways Create a separate page layout for those 3 users and assign it to their profile. => take into account that any user that gets that profile as well will see the visualforce page as well ...
Nielsm's user avatar
  • 2,084
2 votes

I am seeing the Visualforce page message in my debug logs but cannot get it to display on the page!

First problem: this return statement is outside of the if scope braces and this code will always return null. Based on your other code, you intended the return to be inside the braces. if (...
Mark Pond's user avatar
  • 23k
2 votes

How to hide a field from a specific profile?

Thanks to Rajesh who pointed out that it could be due to other permission sets. I checked and indeed there was a permission set assigned to the sales user, that also granted access to that members ...
ohseekay's user avatar
  • 195
2 votes
Accepted

Lightning Component form field - hidden

@Michele-Kleinhomer - If you are trying to hide the field on the form so that you can use the value of that field in your logic, you can specifying the class attribute and set it to slds-hide. Let me ...
Vinod Agrawal's user avatar
2 votes
Accepted

Implicit sharing on custom objects relationship

1) CRUD access is not provided to any two of them such that a user has access to only one object at a time. Then what would be the sharing and visibility of related object's records. Since, OWD is ...
Santanu Boral's user avatar
2 votes

ParentId field on DuplicateRecordSet seems to be not visible

From what you referenced: Use this object to create custom report types and view the results of duplicate jobs. I think the above explains why the ParentId isn't available to you in Process ...
crmprogdev's user avatar
2 votes

Way to assign read only to ALL fields at once?

Other than using code to generate permission set data (which is possible - iterate the schema and generate the required XML as a string which you debug log out; run the code, copy and paste the XML ...
Phil W's user avatar
  • 36.7k
2 votes

Case comments visible in the UI but not in SOQL

Your screen shot shows Text Posts tab. These are Chatter FeedItems of type Text Post. Case Comments are not chatter feed items. To query standard object FeedItems SELECT Body, ... FROM CaseFeed ...
cropredy's user avatar
  • 71.8k
1 vote
Accepted

Limit the visibility of records related list

No. Related lists cannot be filtered this way. You could create a custom component or Visualforce page, or build a solution involving record types, multiple page layouts, multiple lookup fields, and a ...
sfdcfox's user avatar
  • 494k
1 vote
Accepted

How to allow only the Task Creator/Owner records to have visibility of all Task record created by the Creator/Owner?

On the Task object, the field whose label is "Assigned To" is actually the owner field (OwnerId). This means that when the creating user assigns the Task, they also transfer ownership and thereby lose ...
David Reed's user avatar
  • 93.1k
1 vote

Implicit sharing - role configuration

I think there could be an issue with the sharing rule based on which Account record is shared to User M. If you create sharing rule and share those records based on role then User M or User Z will not ...
Santanu Boral's user avatar
1 vote
Accepted

Share accounts by field value

You need Sharing Sets here. Grant portal or community users access, based on their user profiles, to records that are associated with their accounts or contacts using sharing sets. You can use it ...
Jayant Das's user avatar
  • 30.6k
1 vote

Deployed tabs not visible in production

With thanks to user Jayant Das, I have managed to solve my problem. Apparently this is a known issue - https://success.salesforce.com/issues_view?id=a1p3A0000001CsgQAE&title=custom-tab-not-visible-...
ohseekay's user avatar
  • 195
1 vote

Lightning Component form field - hidden

As for your issue: but the visibility attribute isn't being recognized It's because visibility is not a valid attribute for lightning:select. You can refer to what are available attributes for ...
Jayant Das's user avatar
  • 30.6k
1 vote

lightning component visibility based on profile

You cannot give access to Lightning Bundle from profile. But you can do is rerender based on the logged in user profile.
Arvind's user avatar
  • 173

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