Questions tagged [accountshare]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
20 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' ...
0
votes
3answers
33 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 ...
3
votes
1answer
53 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, ...
0
votes
1answer
116 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 ...
0
votes
0answers
183 views

How to add account team members as a partner user? [closed]

I have some Partner Users that is needed to be considered as team members in an Account. Is there a way to add "default teams" in Partner Users? One of my Partner's User is Account Owner. ...
0
votes
1answer
130 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 ...
0
votes
1answer
218 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 ...
1
vote
1answer
78 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....