When creating a base platform object record and a custom object record in the same transaction, sharing rule does not fire for the second object
Sharing , Custom Objects , Financial Services Cloud , Health Cloud
Last updated 2022-02-10 ·Reference W-7881598 ·Reported By 4 users
Summary
When creating a base platform object record and a custom object record in the same transaction (when both have criteria-based sharing rules), only the sharing rule of the first record is executed.
Repro
1) Add criteria-based sharing rule to Member Plan (Health Cloud object)
2) Create a custom object and add a criteria-based sharing rule
3) In a single transaction create a member plan record and custom object record
Expected: Both records will be shared according to the sharing rule
Actual: Only the first record is shared
Workaround
1) create second object record in a separate transaction
or
2) use Apex sharing
Reported By (4)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.