I've recently ran into an issue where when my flow fails to get a record, I get a "too many SOQL queries" error. This is the error in a before save
What is Too many SOQL Queries 101 Exception? In Salesforce we can encounter the Salesforce Governor Limitssystem limit exception too many soql queries 101very often. This means we can only have up to 100 SOQL in a single context. This is ahardlimit, which means you can’t increase it by...
Avoid using Seealldata=true if possible. It's better to just create these records from scratch in your Test Class. This is not only a good Salesforce practice, but also a good coding practice in general. Plus, you'll save on SOQL queries.(尽量避免使用 seeAlldata = ture, 这个基本属于严...