I want to confirm if the following use case is plausible :
Our client wants to set up a helpdesk app on a community.
Main flow will be :
- community user creates a Case ( using custom code, not standard page)
- Case is reassigned to a predefined queue ( using Case Assignment Rules )
- after the Case ownership is changed we need to re-share the case with the user that created it.
So far we are able to create the case and change the ownership, when we reach the step of sharing back the record we get an INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY exception .
The CaseShare record is created on a @future method, otherwise we aren't able to user the CaseShare Object.