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="{!...
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 ...
8
votes
Accepted
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 ...
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 ...
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>...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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: [ { ... }, ... ]...
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 (...
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 ...
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 ...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
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 ...
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 ...
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-...
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 ...
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.
1
vote
Case comments visibility
Case Comments are part of the case so the visibility will be based on the Case permissions. The IsPublished field (label as Public) on screen means that community and portal users are not able to view ...
1
vote
Restrict account view on fields and related list based on type of user
Here is what I understood: You want to restrict FLS on a per-country basis. Not just layout visibility.
The problem here is that the platform just flat out does not work like that.
If you have read ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
visibility × 105sharing × 16
visualforce × 8
profile × 7
lightning × 6
community × 6
security × 6
apex × 5
tab × 5
partner-communities × 5
lightning-aura-components × 4
case × 4
permissions × 4
page-layout × 4
administration × 4
configuration × 4
sharing-rule × 4
owd × 4
lightning-web-components × 3
soql × 3
salesforcedx × 3
managed-package × 3
visual-workflow × 3
chatter × 3
customer-community × 3