Skip to main content
9 votes

Issue with updating objects using the "accessLevel" parameter of Database.update method

As you have seen, you cannot include LastModifiedDate when doing an update in user mode. The easiest way to fix this would be to create a new Account in Apex and use that to update. For example: acc = ...
fred's user avatar
  • 3,410
6 votes

How does getSObjectType().getDescribe() work in a 'Without Sharing' Class?

without sharing will not reinforce SFDC field level access and visibility, so you will be running your class on system context. In system context, Apex code has access to all objects and fields— ...
Carlos Naranjo's user avatar
5 votes

How does getSObjectType().getDescribe() work in a 'Without Sharing' Class?

All security-related methods, such as UserRecordAccess and the describe calls, will always return the user's real permissions. All that "without sharing" does is turns off the permission and sharing ...
sfdcfox's user avatar
  • 491k
2 votes
Accepted

Schema sObjectType [Object] fields isUpdateable returns false despite profile config

There is a field called Marketing User on the User object. The running user must have this box checked in order to work with the Campaign object. See: Who has access to campaigns?
Adrian Larson's user avatar
  • 150k
2 votes
Accepted

Group user permission

You can create two different Public Groups (one for each team), and put all the users you wish to segregate in one of those roles. Then, using Sharing Rules, you can give each Public Groups R/W ...
Sebastian Kessel's user avatar
2 votes

Group user permission

Believe you're looking for sharing rules and public groups.
Chris Fellows's user avatar
2 votes

Tried referencing a Custom setting Text area(255) field inside a Formula in salesforce flow, but somehow it is erroring out saying field not exists

Text Area fields are not supported in Formulas. You can vote for the idea for now.
Mohith Shrivastava's user avatar
1 vote
Accepted

Contract records access

So generally to set Sharings in community (Experience cloud) Sharing Sets are used. To access sharing set settings you need to go to Setup -> Digital Experience -> Settings. Contract is... ...
user1974566's user avatar
  • 2,315
1 vote
Accepted

External user as record owner - implications?

I was following this question and was waiting for an answer. But since there are no answers , I will try to answer this to the best of my knowledge. What happens if we try to make a Experience(a.k.a. ...
Rohit's user avatar
  • 1,791
1 vote

Remove access to Account Records having record type "Partner", for a particular role

You need to do several things OWD Private on Account (as you suggested) Remove View All/Modify All on Account from any user's profile or permission set(s) that would access Accounts with recordtype = ...
cropredy's user avatar
  • 71.4k
1 vote

Querying for RecordType's DeveloperName throws error when generating code through tooling

Querying Record Type data is not the same as querying Record Types through the Tooling API. Specifically, different fields are available in each instance. For the Tooling API, there is a Name ...
Nicholas Savini's user avatar
1 vote
Accepted

Querying for RecordType's DeveloperName throws error when generating code through tooling

If you look at the documentation for RecordType specific to the Tooling API, you can see what fields are defined for access there. Specifically, it doesn't have DeveloperName, but rather Name.
Adrian Larson's user avatar
  • 150k
1 vote

Salesforce record access: Can access provided on public group override profile permissions

In order to edit a record, a user needs to have "Update Object" on their Profile, as well as "Edit" access or higher to a record. In other words, neither "override" the other in this scenario. The ...
sfdcfox's user avatar
  • 491k
1 vote

Setting Different Permission For Record Owners

There are record-level security controls (sharing) and there is field-level security by profile. However there is no such thing as combined "record-level field security". What you might be able to do ...
Charles T's user avatar
  • 11k
1 vote
Accepted

Setting OppurtunityAccessLevel field on Object OpportunityTeamMember using Trigger

OpportunityTeamMember.OpportunityAccessLevel is not a writeable field. You will have to make use of Opportunity Share object to achieve this. Hence you need to use the below mentioned code to provide ...
Anant's user avatar
  • 138
1 vote

Setting OppurtunityAccessLevel field on Object OpportunityTeamMember using Trigger

Since OpportunityAccessLevel is a Restricted picklist. Valid values are: Read, Edit. For more details on Read Only is not supported error, refer [this][1] link.
Jill_sfdc's user avatar
  • 453

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