1

If there any Option to share the newly created Pricebook using Apex class to Current user. We have separate object(Opportunity Share) for Opportunity sharing like that do we have any object to share the pricebook to current user?.

If No, please suggest me how to share the created pricebook record to current user.

We maintaining OWD setting for Pricebook is "View Only".

2 Answers 2

1

You can share using a Trigger and Apex based Sharing rules to run on create of a Pricebook, see here: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_bulk_sharing_creating_with_apex.htm

2
  • You should include the essential information in your answer; if the link ever becomes invalid, this answer would become worthless for future visitors.
    – sfdcfox
    Mar 13, 2018 at 14:46
  • Thanks for your response I don't want to share the all pricebook to current user. Just I need to share the single procebook record which was created by the current user using flow.
    – Satheesh
    Mar 15, 2018 at 7:46
0

It seems we cannot create Sharing records like any other Standard or Custom Object, there are some open ideas about this thing.

There is no Pricebook2Share Object to write on.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .