Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout when retrieving Flows #24

Open
RobertoArconadaS4G opened this issue Apr 20, 2022 · 2 comments
Open

Timeout when retrieving Flows #24

RobertoArconadaS4G opened this issue Apr 20, 2022 · 2 comments
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@RobertoArconadaS4G
Copy link
Member

To retrieve flows, it is necessary to get every flows of any type from de org. This causes, depending the number of flows in the org, a timeout limit exception calling metadata api.

@RobertoArconadaS4G RobertoArconadaS4G added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels Apr 20, 2022
@hmolto
Copy link
Collaborator

hmolto commented Apr 21, 2022

If this happens to you, as a workaround we recommend inactivating those categories. Go to Custom Metadata > Category Settings (Manage), and inactivate Record Before Trigger Flows, Record After Trigger Flows and Process Builders

@jonathanwiesel
Copy link
Member

jonathanwiesel commented May 4, 2022

For RTFs (record-triggered flows) we can filter out which flows we specifically need without fetching everything with the following query:

SELECT Id, ActiveVersionId, TriggerOrder TriggerType FROM FlowDefinitionView WHERE TriggerObjectOrEvent.QualifiedApiName = :objectApiName

This approach however does not apply to Process Builder type flows that will need to be fetched to determine the applicable object. Although filtering the FlowDefinitionView object by ProcessType = 'Workflow' we can at least keep the unrelated fetching to a minimum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants