I have an After create Case flow that performs two actions when certain conditions are met:
- It creates a Case Comment on another Case
- It deletes the triggering record
In itself it works perfectly: the Case Comment is created, the Case is deleted.
An admin user sees the usual 'Case "xyz" was created.' toast, though without the "xyz" part. But a non admin user does not see this toast. Instead an error is shown:
The requested resource does not exist
The debug log does not contain any errors. The Case has been deleted. It is located in the Org Recycle Bin.
Maybe that is the problem: admins have access to the Org Recycle Bin, but ordinary users do not.
So what could be the cause and how can it be solved? The process in itself works, but non admin users are led to believe that something has gone wrong.