Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,13 @@ You can bypass all actions on an sObject as well as specific Apex or Flow action

#### Bypass from Apex

The framework provides compile-safe bypass methods that accept type references.

**Bypass sObjects using Schema.sObjectType:**
**Bypass Triggers Using the sObject API Name**

```java
public void updateAccountsNoTrigger(List<Account> accountsToUpdate) {
TriggerBase.bypass(Schema.Account.SObjectType);
TriggerBase.bypass('Account');
update accountsToUpdate;
TriggerBase.clearBypass(Schema.Account.SObjectType);
TriggerBase.clearBypass('Account');
}
```

Expand Down