Rationale
Record IDs change between environments, so any logic using IDs that are hardcoded in the code will fail when deployed to a different sandbox or Salesforce org.
Scope
Apex classes and triggers
Lightning component controllers (JavaScript)
Detect any hardcoded record IDs in your Lightning controllers and Apex classes and triggers.
Record IDs change between environments, so any logic using IDs that are hardcoded in the code will fail when deployed to a different sandbox or Salesforce org.
Apex classes and triggers
Lightning component controllers (JavaScript)