New answers tagged

1 vote

Dynamic SOQL inside for loop

This common case that leads to this idea is having a loop over a list of records with a query inside the loop. Works fine initially when there are only a few records but breaks when there are more ...
  • 132k
2 votes

Using System.runAs in all tests - Best practice or Antipattern?

For ISV/managed package development, you don't have control over the security model in the subscriber org so it's imperative that you ship Permission Sets or Permission Set Groups in your package to ...
  • 2,418

Top 50 recent answers are included