I’m finding no helpful information on this.
When an error mentions a 301-prefixed Id, I know it’s Flow related (probably Process Builder), but I have no clue how to hack a URL to showing me the Flow (or Process Builder) in question. Typical http-salesforceDOTcom/ID references do not work.
I have no clue how to debug such errors without the ability to know WHAT Flow / Process Builder routine it means. 🙁
In the screenshot, 301* is the “Flow”, while a5A is a managed Custom object (Customer Master from Rootstock). I can’t simply put the 301* reference after a Salesforce URL like most objects.
Insufficient Privileges
You do not have the level of access necessary to perform the
operation you requested. Please contact the owner of the record
or your administrator if access is necessary. For more
information, see Insufficient Privileges Errors.
UPDATE 1: This is the closest I came to a solution – someone mentioning the same concern in an Idea: https://success.salesforce.com/ideaView?id=08730000000DmI7AAK – a year ago.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
The URL format for going to a Flow is:
https://INSTANCE.salesforce.com/designer/designer.apexp#Id=VERSIONID
INSTANCE is your Org instance (na9, cs26, etc)
VERSIONID is the version of the Flow referenced in the error message (301*).
Method 2
Ran into same issue like this in the past for a client who used process builder heavily and it was time consuming to locate the offending flow version.
Here are two approaches:
Appraoch #1 (Using Tooling API):
Check the checkbox Use Tooling API
in developer console and run the below query:
SELECT Id, ActiveVersionId, Description, DeveloperName, ActiveVersion.MasterLabel, ActiveVersion.FullName, ActiveVersion.VersionNumber FROM FlowDefinition
Output:
NOTE: You can finetune this query further by referring to the Tooling API reference.
Approach #2:(Using chrome debugger)
- Enable chrome debugger and navigate to the network tab.
- Click on all the versions to open the process builder designer and you should see the versionId of the flow in the network tab as shown in the below screenshot.
Others may have a easy method to locate the version by the Id showing in the error message but this is what I used to debug the failing version.
Method 3
Goto Workbench > Utilities > REST Explorer > Make a GET call with this path (/services/data/v37.0/tooling/sobjects/flow/{flowID})
https://success.salesforce.com/ideaView?id=08730000000LhHQAA0
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0