I was trying to implement a custom record sharing logic and so I wrote a trigger to achieve it. Now I just came across a blog where it is written that this can be avoided by using a visual flow and process builder. I tried to go through the steps mentioned there which included creating variables on the flow (one for holding the id of the record to be shared, other for the id with whom the record is to shared) , then creating a record on CustomObject__share and then calling the flow through process builder. The problem i'm facing here is on my 'Create a record' palette I couldn't find the share object of the one i wanted to share i.e the one with __share. Is there something i'm missing here?
The __share object is available only if your OWD for the object is set either "private" or "public read only" and it is not a detail object in master detail relationship .