Salesforce Fact #392 | Be careful while using Get Records on custom metadata in flow

We know that SOQL on custom metadata and also using the built-in functions like getAll(), getInstance() do not count towards the SOQL query count. But do you know this is not the case while using Get Records in Flow.

While using Get Records on Custom Metadata in flow counts towards the 100 SOQL limit and shows error if that limit is reached. So, we need to be very careful while fetching custom metadata in flow.

Attached are the screenshots.







Note: The above construct is only for demonstration purpose. Please do not use SOQL or Get Records inside loop as it is not a good practice.

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow