Skip to content

Commit 9eafc1b

Browse files
authored
Spring 25 (#172)
* Bump to API 63 * Update package version * Update API version in sfdx project
1 parent 48c55cb commit 9eafc1b

34 files changed

+38
-47
lines changed

.github/workflows/Package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ jobs:
3535
id: create
3636
run: |
3737
sf package version create --definition-file config/project-scratch-def.json --package "Trigger Actions Framework" --version-number ${{ inputs.packageVersion }} --wait 120 --code-coverage --installation-key-bypass
38+
cat sfdx-project.json

README.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
# Apex Trigger Actions Framework
22

3-
<a href="https://githubsfdeploy.herokuapp.com?owner=mitchspano&amp;repo=apex-trigger-actions-framework">
4-
<img src="https://raw.githubusercontent.com/afawcett/githubsfdeploy/master/src/main/webapp/resources/img/deploy.png" alt="Deploy to Salesforce" />
5-
</a>
3+
#### [Unlocked Package Installation (Production)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04tKY000000PdZJYA0)
64

7-
#### [Unlocked Package Installation (Production)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04tKY000000Pb8tYAC)
8-
9-
#### [Unlocked Package Installation (Sandbox)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04tKY000000Pb8tYAC)
5+
#### [Unlocked Package Installation (Sandbox)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04tKY000000PdZJYA0)
106

117
---
128

@@ -115,7 +111,7 @@ To enable this flow, simply insert a trigger action record with `Apex_Class_Name
115111
> - **Why It Matters:** This limit can be reached when Trigger Action Flows perform DML operations that cascade across multiple objects with their own Trigger Action Flows.
116112
> - **When to Be Careful:** Exercise caution when using Trigger Action Flows in scenarios involving multiple DML operations or complex trigger chains.
117113
> - **Safe Use Cases:** Same-record updates, using the `addError` action to add a custom error message, and actions like workflow email alerts are generally safe.
118-
> - **Potential Solution (Developer Preview):** [This idea](https://github.com/mitchspano/apex-trigger-actions-framework/issues/135) aims to reduce the likelihood of hitting the limit, but the technology is still under development.
114+
> - **How to Avoid Issues:** Implementing [Entry Criteria Formula](#Entry-Criteria-Formula) will reduce the likelihood of hitting the limit. Define entry criteria on all Flow actions whenever possible.
119115
120116
### Flow Actions for Change Data Capture Events
121117

@@ -134,15 +130,11 @@ Create a trigger action record with `Apex_Class_Name__c` equal to `TriggerAction
134130

135131
---
136132

137-
## Entry Criteria Formula (Beta)
133+
## Entry Criteria Formula
138134

139135
Individual trigger actions can have their own dynamic entry criteria defined in a simple formula.
140136
This is a new feature and is built using the [`FormulaEval` namespace](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_formulaeval.htm) within Apex.
141137

142-
#### [Entry Criteria Beta Package Installation (Production)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04tKY000000PdZ9YAK)
143-
144-
#### [Entry Criteria Beta Package Installation (Sandbox)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04tKY000000PdZ9YAK)
145-
146138
### SObject Setup
147139

148140
To define an entry criteria formula for a given trigger action, first define a class which extends `TriggerRecord`
@@ -192,13 +184,10 @@ record.Name = "Bob" && recordPrior.Name = "Joe"
192184

193185
Now, the automation will only execute for any records within the transaction for which the name used to be "Joe", but it is changed to "Bob".
194186

195-
![Entry Criteria](images/Entry_Criteria.gif)
196-
197187
### Caveats
198188

199189
> [!IMPORTANT]
200190
>
201-
> - **Beta Feature:** The Entry Criteria Formula feature is currently in beta. While it is functional, there might be limitations or changes in future releases.
202191
> - **Field Traversal Limitations:** The `record` and `recordPrior` objects within the formula are limited to the fields directly available on the record itself. Cross-object traversal, such as `record.RecordType.DeveloperName`, is not supported.
203192
204193
---

images/Entry_Criteria.gif

-2.87 MB
Binary file not shown.

sfdx-project.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"namespace": "",
1212
"sfdcLoginUrl": "https://login.salesforce.com",
13-
"sourceApiVersion": "59.0",
13+
"sourceApiVersion": "63.0",
1414
"packageAliases": {
1515
"Trigger Actions Framework": "0Ho3h0000008Om4CAE",
1616
"Trigger Actions Framework@0.1.0-1": "04t3h000004VaHaAAK",
@@ -41,6 +41,7 @@
4141
"Trigger Actions Framework@0.3.1-3": "04tKY000000PdYBYA0",
4242
"Trigger Actions Framework@0.3.1-4": "04tKY000000PdYGYA0",
4343
"Trigger Actions Framework@0.3.1-5": "04tKY000000PdYaYAK",
44-
"Trigger Actions Framework@0.3.1-6": "04tKY000000PdZ9YAK"
44+
"Trigger Actions Framework@0.3.1-6": "04tKY000000PdZ9YAK",
45+
"Trigger Actions Framework@0.3.1-7": "04tKY000000PdZJYA0"
4546
}
4647
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
3-
<apiVersion>62.0</apiVersion>
3+
<apiVersion>63.0</apiVersion>
44
<status>Active</status>
55
</ApexClass>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
3-
<apiVersion>62.0</apiVersion>
3+
<apiVersion>63.0</apiVersion>
44
<status>Active</status>
55
</ApexClass>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
3-
<apiVersion>62.0</apiVersion>
3+
<apiVersion>63.0</apiVersion>
44
<status>Active</status>
55
</ApexClass>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
3-
<apiVersion>62.0</apiVersion>
3+
<apiVersion>63.0</apiVersion>
44
<status>Active</status>
55
</ApexClass>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
3-
<apiVersion>62.0</apiVersion>
3+
<apiVersion>63.0</apiVersion>
44
<status>Active</status>
55
</ApexClass>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
3-
<apiVersion>62.0</apiVersion>
3+
<apiVersion>63.0</apiVersion>
44
<status>Active</status>
55
</ApexClass>

0 commit comments

Comments
 (0)