Questions tagged [sharerecord]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
209 views

What is RowCause in share object [duplicate]

Can someone please help me to understand when ROWCAUSE is = Manual or Owner or ImplicitChild or Rule. and if ROWCAUSE is not Manual can we still delete shareObject from apex if yes then how because I ...
1
vote
1answer
64 views

Winter'19 Release: “Opportunities: Retain Edit Rights for Previous Opportunity Owners”

This is a useful feature in some situations: https://releasenotes.docs.salesforce.com/en-us/winter19/release-notes/rn_sales_features_core_oppty_sfx.htm But this can literally double the share table ...
0
votes
1answer
55 views

How to make Child records as owner same as Case in salesforce?

I had master detailed relationship with the Case and Payment1,2 etc object. Now this relationship is changed to lookup. Now OWD for Case, Payment1,2 is Private. Now User is not able to access the old ...
0
votes
1answer
41 views

How to combine Share object query?

Again raising the question from the link. Case is Private and Payment is also Private. Payment has lookup relationship with the Case. I have developed code which create share object for Case and ...
0
votes
1answer
39 views

ContactShare Trigger : Not inerting data

I have a trigger written for portal users (3 user type as described on trigger below )to check if the contact they are trying to create is s duplicate one based on email entered. If it's a duplicate ...
0
votes
1answer
58 views

Share cases created by customer community users with the community users of parent account of associated account

Here is what I am trying to achieve, Case OWD is Private. I want to share cases created by community users with the community users(contacts) of the parent account of the associated account.Sharing ...
2
votes
0answers
54 views

Grant Access Hierarchy

I have a query on Grant access hierarchy and sharing rule. I have in my system Accounts being shared to Users through Account Share , Group and Territory. Now, I have A1 account shared to T1 ...
0
votes
1answer
67 views

Opportunity records are shared with users automatically

We are using a Visualforce page for creating Opportunity records. The Opportunity OWD is set to Private.We have salespersons field(users) being set on Opportunity Page while creating Opportunity. The ...
4
votes
1answer
367 views

What exactly happens when a share record is inserted?

We have apex sharing all over our project. When we developed and tested it in a Developer sandbox everything went nice and smooth. Now, in full sandbox this apex sharing seems to be the bottleneck. It ...
1
vote
1answer
237 views

Unable to Submit for Approval

I have a custom object K__c with OWD setting Private and with Grant Access Using Hierarchies set to true. There is a record k1 with owner u1. u1 has role r1. Manager of u1 is u2. r1 reports to ...
1
vote
1answer
493 views

How can we share a pricebook record to a group using apex code

I want to share record of Pricebook to a group. Their is no object called PricebookShare, how can we share if there is no object PricebookShare to share? Is there any way? Please guide me.
1
vote
1answer
1k views

I am trying to write a trigger when the record is shared for this object with any user.

I have a custom object myObj. I am trying to write a trigger when the record is shared for this object with any user. Salesforce creates myObj__Share object for sharing. I can see when I share a ...
8
votes
1answer
5k views

FIELD_INTEGRITY_EXCEPTION: field integrity exception: unknown (invalid user or group: 005XXXXXXXXXXXX)

I've a object called myobject__c. This object is private in OWD Setting. Now when admin create a new record of this object then I want to share this record with a user(community user). For this I've ...