Skip to main content
The 2024 Developer Survey results are live! See the results
8 votes
Accepted

UNABLE_TO_LOCK_ROW error during inserting a new Record

There are lots of situations where an insert can cause a record lock against the parent of the inserted record, or even against third records. Inserting Task, for example, can lock the WhoId, WhatId, ...
David Reed's user avatar
  • 93.2k
8 votes
Accepted

Getting Error : "access_token": "SESSION_ID_REMOVED"

You can't see a direct Session ID in the debug logs for security reasons. See Session_ID_Remove Issue in API callouts in Salesforce. However, it should still be possible to use it for call outs. If ...
Daniel Ballinger's user avatar
7 votes
Accepted

Permission Set->Flow Access available flows is empty

"Run Flow" permission lets you run all flows by default On the list of Flows, click "Edit Access" on the right-hand end picklist. This will let you Override the default for one ...
haryadoon's user avatar
6 votes
Accepted

Get access to salesforce REST API without user logging in

You'll want to read all about setting up a public REST API. Basically, you create a @RestResource, then enable the class for the Public Site Settings, and then you can call them without being logged ...
sfdcfox's user avatar
  • 497k
5 votes
Accepted

Managed Package - Access to Visualforce Page and Apex classes

yes, When installing select "all users". Also include perm sets to grant one offs as they arise
Eric's user avatar
  • 54.2k
5 votes
Accepted

"You do not have access to the Apex class named ...": cannot find the cause

Well, I solved it and it turned out to be profile related, but the solution is mystifying to me, very unsatisfactory. In the sandbox in which I develop, the only profile that has access to the class ...
Sander de Jong's user avatar
4 votes
Accepted

Account Team configuration- What Opportunity or Case Access Private means?

The Private option on Account Team Members simply means that the user who is a team member doesn't get any additional access to the cases or opportunities on the account, as specified. This is similar ...
sfdcfox's user avatar
  • 497k
4 votes

How to write to static resource (text file) in Managed package

Static Resources are not subscriber-editable, i.e., cannot be changed in subscriber orgs when installed as part of a managed package. Static Resources are meant to be just that - static. They are not ...
David Reed's user avatar
  • 93.2k
4 votes

Salesforce - Admin - Object restriction

You can't remove/restrict a user's permissions below their profile level. Instead, you would want to remove the object access for the profile, then create a Permission Set with that object's access ...
sfdcfox's user avatar
  • 497k
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
Accepted

Custom Object Access via Public Groups

Permissions through public groups or roles denotes Record Level Visibility or Access Rights either that could be read-only or read-write. Even record level access comes after having access to objects ...
Santanu Boral's user avatar
3 votes
Accepted

Security for Users added in the Case Team Role

There are 2 things we need to keep in mind: Visibility (Record level) Access rights (Profile Permissions) According to OWD, case is Private, the XXX get visibility of the record and the access right ...
Santanu Boral's user avatar
3 votes

Create a ContentVersion document available for all users

I've seen this issue before. I solved it by changing the FirstPublishLocationId (described here) to a public folder: FirstPublishLocationId Type: reference Properties: Create, Filter, Group, ...
salesForceNoob's user avatar
3 votes

OpportunityShare not writeable

This is a common problem when trying to write to a field where the relationship is not reparentable. Apex marks the field as read-only to prevent DML errors. To overcome this problem, use the sObject ...
sfdcfox's user avatar
  • 497k
3 votes

It is Possible to Generate Access Token without using Username and Password?

Yes, there is such a possibility. What I understood so far, is that your needs are some server-server integration without additional interaction of the user. OAuth 2.0 JWT Bearer Flow for Server-to-...
Oleksandr Berehovskyi's user avatar
3 votes
Accepted

How to assign field access to multiple permission sets at a time

In addition to comments , you can also simply prepare a csv file and insert all permissions in "FieldPermission" object. Snapshot of excel to be inserted In the snapshot below is ...
Elijah's user avatar
  • 849
3 votes
Accepted

How to make a screen flow available in a public digital experience page?

I think this is your issue: LWC Digital Experience Unauthorized Access ok, I figured out my issue; thanks to rene winkelmeyer's "How to build LWR sites with Experience Cloud", specifically ...
BritishBoyinDC's user avatar
2 votes
Accepted

Can't get refresh_token in callback with a 'full' scope

Specify both scopes: scope: "refresh_token full", The scope parameter is a space-delimited list of scopes you would like to request. You can specify as many scopes as you need to be as granular as ...
sfdcfox's user avatar
  • 497k
2 votes

Unable to access static resources for some profiles

Accessing Static Resources requires the "View and setup configuration" permission. View more details about managing static resources and required permission to do same @ https://help.salesforce.com/...
Mike's user avatar
  • 754
2 votes

INSUFFICIENT_ACCESS_OR_READONLY in Batch class. No error when done outside Batch

It appears to me that the code you're operating on isn't linking back to what you're primarily working with: CampaignMember. Instead, you're operating on Lead retrieved from CampaignMember without ...
crmprogdev's user avatar
2 votes
Accepted

Root cause for "Entity is not org-accessible" for sharing object?

If your Sharing Settings are set to Public Read/Write, then the custom object __share object is not available. Check the OWD Sharing by going to Setup > Security Controls > Sharing Settings. Once it ...
Adrian Larson's user avatar
  • 151k
2 votes

How can I download the changesets from a visualforce page into a zip file?

It seems, we can not able to import/export changesets to zip files. There is an Idea for this on IdeaExchange
Devendra's user avatar
  • 5,075
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

Restrict users' access to only see records they own

To achieve this, set the Organization Wide Defaults (Setup->Sharing Setting) for your custom object to private and make sure that the user is the Owner of the record. Also ensure that the profile ...
Gareth Jordan's user avatar
2 votes
Accepted

How do I grant an external vendor developer development access

In typical standard arrangements, third-party developers are never given direct access to production. Instead, create a new Developer or Developer Pro sandbox for them (this will have no data, but ...
sfdcfox's user avatar
  • 497k
2 votes

How to provide access in bulk

You can use a tool like https://profilepowertools.com/ which gives an easy UI to mass update FLS Other tools exist also
toufik_at's user avatar
  • 370
2 votes

How to limit activity access for a specific object and profile

No. There's no way to get that level of granularity. If an object supports activities, and the profile allows activities, they will have access to those activities. If not, they will not.
sfdcfox's user avatar
  • 497k
2 votes
Accepted

Object Access on Aura Component

The error is coming because the user does not have access to the object. A user must have at least Read access to the object specified in the attribute type. Otherwise, the component doesn't ...
manjit5190's user avatar
  • 8,043
2 votes
Accepted

What types of attacks does Salesforce Multi Factor Authentication (MFA) prevent?

It is Keylogging and Phishing. Because these other attacks can be avoided with different ways - Dictionary attack This can be avoided by using complex password policies and a number of attempts. With ...
Ysr Shk's user avatar
  • 3,157
2 votes
Accepted

Account team, Opportunity access versus Opportunity team member

The difference is that adding an Account Team Member with Opportunity Edit Access grants access to every Opportunity on the Account, while adding the Opportunity Team Member grants access only to that ...
sfdcfox's user avatar
  • 497k

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