I have a flow that is working via the flow builder Debug page, but not when triggered in Salesforce. It worked several weeks ago, so I wonder if there's something with Summer '19 that's causing an issue (the sandbox was updated to Summer '19 after initial config & testing were completed).
The purpose of the flow is to facilitate sharing for Customer Community users. It creates a public group whenever an Account is created and creates manual sharing on the Account so that those in the group have access to it.
Steps to Reproduce:
- Create new Account.
- Process Builder is triggered: Whenever account is created with the correct record type, launch flow. Passes in the Account Name and ID as variables.
Expected:
Flow is processed. First, a public group is created. Second, an Account Share record is created to manually share the public group to the Account.
Actual:
The public group is created, but the Account Share record is not. No flow errors are sent via email.
I put an email send at the end of the flow that sends me all of the IDs (account, group, account share), and the odd thing is that it shows an Account Share ID in the email even though I don't see it on the Account in Salesforce.
HOWEVER, when I click Debug from within the flow builder and pass in an Account Name and ID, this everything works correctly.