Skip to content

Commit 33fade6

Browse files
committed
update README
1 parent 9eafc1b commit 33fade6

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

README.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -158,20 +158,7 @@ global class AccountTriggerRecord extends TriggerRecord {
158158

159159
Then enter the API name of that class in the `SObject_Trigger_Setting__mdt.TriggerRecord_Class_Name__c` field on the `SObject_Trigger_Setting__mdt` record of interest.
160160

161-
Now, you can use a formula which operates on an instance of this class at runtime to determine if a record should be processed. For example, let's say we had the following trigger action:
162-
163-
```java
164-
public class TA_Account_Sample implements TriggerAction.BeforeUpdate {
165-
166-
public void beforeUpdate(List<Account> newList, List<Account> oldList) {
167-
for (Account account : newList) {
168-
account.Name = 'Triggered';
169-
}
170-
}
171-
}
172-
```
173-
174-
We could define this entry criteria formula on the `Trigger_Action__mdt` record:
161+
Now, you can define a formula on the `Trigger_Action__mdt` record which operates on an instance of this class at runtime to determine if a record should be processed
175162

176163
```
177164
record.Name = "Bob" && recordPrior.Name = "Joe"

0 commit comments

Comments
 (0)