Skip to main content

Questions tagged [accountshare]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
82 views

Opportunity is visible in reports

Premise: As per the business requirement all internal users should see all the accounts, but they should NOT be able to see all the opportunities. The only opportunities they should be able to see is ...
user43598's user avatar
  • 497
1 vote
0 answers
643 views

Strange Behaviour in Production with deletion of AccountShare record with Row Cause as Manual

As per documentation. If a user transfers ownership of a record, Salesforce deletes any manual shares created by the original record owner, which can cause users to lose access. When account ...
Nagendra Singh's user avatar
1 vote
0 answers
296 views

RowCase is manual but still can't delete account share

This code here fails: List<AccountShare> existingShares = [SELECT Id FROM AccountShare WHERE RowCause = 'Manual' ...
ensir's user avatar
  • 383
0 votes
3 answers
900 views

Manual account sharing with all users

my Sharing Settings for Account is private. However I want to have some Accounts shared to everybody. I could create one record of AccountShare for each user but I know that's not the best solution: 1 ...
Julio Didier Maciel's user avatar
3 votes
1 answer
138 views

How can I match ID and fullName of AccountShare?

Querying AccountShare When I query for an AccountShare, I get some interesting stuff, including an ID but no name, label or fullname : SELECT ID, RowCause, UserOrGroupId, AccountAccessLevel, ...
altius_rup's user avatar
0 votes
1 answer
1k views

AccountShare delete issue

I'm trying to delete all AccountShare records, but getting the below error: SHARE_NEEDED_FOR_CHILD_OWNER, account share row needed for owner or share of at least I tried adding order by inside my ...
Michal_LFC's user avatar
0 votes
1 answer
600 views

AccountShare UserOrGroup.Type returning weird results

I was wondering if someone could explain this to me. I am currently working in an org with Territory Management (1.0) enabled and I am trying running queries but getting weird results. When I run a ...
Bryan Anderson's user avatar
0 votes
1 answer
611 views

Problem during Account Owner change and Accountshare record creation by the Community user using process builder and flow

We are implementing Communities in our project and as part of its functionality, the community user submits a form and as a result of this submission: An Account record needs to be created Account ...
Suhasini's user avatar
  • 307
1 vote
1 answer
268 views

Invalid type: Schema.AccountShare.RowCause

I'd like to either return type Schema.AccountShare.RowCause like this: private static Schema.AccountShare.RowCause getRowCause(String rowCause) { // TODO: add switch statement return Schema....
Robs's user avatar
  • 9,376