Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
61e7e78
new version
salgsstyrke Jul 24, 2025
47b1ade
Merge pull request #132 from SFDO-Community/feature/cumulus393
salgsstyrke Jul 24, 2025
9a52c7b
packagelock undo
salgsstyrke Jul 24, 2025
8599660
Merge pull request #133 from SFDO-Community/feature/cumulus393
salgsstyrke Jul 24, 2025
b6efe81
Update object permissions to allow edit for Lead and Contact
Necroni Jul 30, 2025
250cb10
Update Unsubscribe object description to remove Labs reference.
Necroni Jul 31, 2025
095be88
Templates for Unsubscribe Link
DKeatonDC Jul 31, 2025
edb8c7d
Gracefully handle Org-Wide Email issues
ivanrichiee Jul 31, 2025
c146fe0
Partially addresses issue discovered error emails.
DKeatonDC Aug 1, 2025
177eda0
assigns value to text variable
DKeatonDC Aug 1, 2025
abc5880
Delete force-app/main/default/flowDefinitions/Unsubscribe_Link_Quick.…
salgsstyrke Aug 27, 2025
a51e4ba
feature/versionNumber
salgsstyrke Aug 27, 2025
5963bd3
Merge pull request #155 from SFDO-Community/feature/releaseNumber
salgsstyrke Aug 28, 2025
13f9b9c
Merge branch 'main' into feature/LeadContactPerms
salgsstyrke Aug 28, 2025
f229ca6
Merge branch 'main' into feature/unsubscribeObject
salgsstyrke Aug 28, 2025
3996e9d
Merge branch 'main' into feature/orgWideEmailIssues
salgsstyrke Aug 28, 2025
e1f92b7
Merge pull request #154 from SFDO-Community/feature/LeadContactPerms
salgsstyrke Aug 28, 2025
9e1520e
Merge branch 'main' into feature/unsubscribeObject
salgsstyrke Aug 28, 2025
5420cc7
Merge 5963bd3836b4764630bc8263df15b51479ed12d1 into feature/templates2
github-actions[bot] Aug 28, 2025
9593cef
Merge e1f92b792a5a88964ec1fef2d34d04c1eedd2bb9 into feature/orgWideEm…
github-actions[bot] Aug 28, 2025
3cf4520
Merge e1f92b792a5a88964ec1fef2d34d04c1eedd2bb9 into feature/templates2
github-actions[bot] Aug 28, 2025
c5a9aad
Merge pull request #152 from SFDO-Community/feature/unsubscribeObject
salgsstyrke Aug 28, 2025
bf7eb6c
Merge branch 'main' into feature/templates2
salgsstyrke Aug 28, 2025
f9fc6aa
Merge branch 'main' into feature/orgWideEmailIssues
salgsstyrke Aug 28, 2025
0baf00f
Merge pull request #151 from SFDO-Community/feature/orgWideEmailIssues
salgsstyrke Aug 28, 2025
5a20476
Merge branch 'main' into feature/templates2
salgsstyrke Aug 28, 2025
8b92295
Merge pull request #150 from SFDO-Community/feature/templates2
salgsstyrke Aug 28, 2025
23e8fba
Update Sample_Contact_Template_HTML.email-meta.xml
salgsstyrke Aug 28, 2025
a250544
feature/emailtemplatenames
salgsstyrke Aug 28, 2025
804fa9f
Merge pull request #161 from SFDO-Community/feature/EmailTemplateNames
DKeatonDC Aug 29, 2025
9b03f6f
feature/emailFolder
salgsstyrke Aug 29, 2025
fbf7d55
feature/Email Folder xml
salgsstyrke Aug 29, 2025
45bb14e
feature/ReNameEmailsandFolder
salgsstyrke Aug 29, 2025
5a05b35
Merge branch 'main' into feature/EmailTemplatesFolder
salgsstyrke Aug 29, 2025
1579c06
Merge pull request #166 from SFDO-Community/feature/EmailTemplatesFolder
salgsstyrke Sep 1, 2025
6ca94d4
feature/undoEmailRelatedChanges
salgsstyrke Sep 1, 2025
4ba44a6
Merge remote-tracking branch 'upstream/main' into feature/EmailTempla…
salgsstyrke Sep 1, 2025
3952d49
Merge pull request #170 from SFDO-Community/feature/EmailTemplatesAgain
salgsstyrke Sep 12, 2025
5b1d08a
Move try statement to before single email message creation.
acrosman-ava Nov 14, 2025
c46568a
Remove CCI and SFDX version hardcoding.
acrosman Nov 14, 2025
8ea88ff
Updates to Beta and Prod workflows to review version numbers
acrosman Nov 14, 2025
0e5d5c4
Merge pull request #180 from SFDO-Community/feature/fix-build-pipelin…
acrosman Nov 14, 2025
4acc0a3
Merge branch 'main' into feature/fix-batch-email
acrosman Nov 14, 2025
f9c2758
Enable CI workflow on all pull requests (#182)
jstvz Dec 3, 2025
a8836ad
Update CODEOWNERS (#181)
coriobriensfdo Dec 4, 2025
edbbed1
chore: enable manual workflow dispatch for security testing (#183)
jstvz Dec 5, 2025
3462f02
Merge branch 'main' into feature/fix-batch-email
DKeatonDC Jan 9, 2026
4f04fbd
Merge pull request #179 from SFDO-Community/feature/fix-batch-email
DKeatonDC Jan 18, 2026
d2115c5
fix: correct YAML indentation in feature workflow (#191)
jstvz Feb 3, 2026
75d776c
Restore sample email templates to public folder.
acrosman Jan 8, 2026
225e7d8
Merge pull request #197 from SFDO-Community/bug/restore-templates-redux
DKeatonDC Feb 11, 2026
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
5 changes: 3 additions & 2 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ jobs:
uses: "SFDO-Community/standard-workflows/.github/workflows/beta-2gp.yml@main"
secrets:
dev-hub-auth-url: "${{ secrets.DEV_HUB_AUTH_URL }}"
with:
cumulusci-version: '3.86.1'
# with:
# cumulusci-version: '3.93.0'
# sfdx-version: '7.209.6'
18 changes: 7 additions & 11 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: "Feature Test"
on:
push:
branches:
- feature/**

pull_request:
workflow_dispatch:

jobs:
feature-test:
name: "Feature Test"
uses: "SFDO-Community/standard-workflows/.github/workflows/feature.yml@main"
secrets:
dev-hub-auth-url: "${{ secrets.DEV_HUB_AUTH_URL }}"
with:
cumulusci-version: '3.86.1'
feature-test:
name: "Feature Test"
uses: "SFDO-Community/standard-workflows/.github/workflows/feature.yml@main"
secrets:
dev-hub-auth-url: "${{ secrets.DEV_HUB_AUTH_URL }}"
7 changes: 4 additions & 3 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
on:
workflow_dispatch:
workflow_dispatch:
jobs:
upload-production-release-2gp:
name: "Upload Production Release (2GP)"
uses: SFDO-Community/standard-workflows/.github/workflows/production-2gp.yml@main
with:
cumulusci-version: '3.86.1'
# with:
# cumulusci-version: '3.93.0'
# sfdx-version: '7.209.6'
secrets:
dev-hub-auth-url: '${{ secrets.PACKAGING_ORG_AUTH_URL }}'
14 changes: 13 additions & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# Comment line immediately above ownership line is reserved for related other information. Please be careful while editing.
# Python
*.py @SFDO-Community/sfdo-release-engineers

# CumulusCI
/cumulusci.yml @SFDO-Community/sfdo-release-engineers
/tasks/ @SFDO-Community/sfdo-release-engineers

# Actions
/.github @SFDO-Community/sfdo-release-engineers
/scripts @SFDO-Community/sfdo-release-engineers


#ECCN:Open Source
#GUSINFO:Open Source,Open Source Workflow
2 changes: 1 addition & 1 deletion cumulusci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
minimum_cumulusci_version: '3.86.1'
minimum_cumulusci_version: '3.93.0'
project:
name: Unsubscribe-Link
package:
Expand Down
10 changes: 5 additions & 5 deletions force-app/main/default/classes/UUIDBatchJob.cls
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ public with sharing class UUIDBatchJob implements Database.Batchable<SObject> {
}
);

Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
mail.setToAddresses(new List<String>{ job.CreatedBy.Email });
mail.setSubject('UUID Batch Job Complete');
mail.setPlainTextBody(emailBody);

try {
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
mail.setToAddresses(new List<String>{ job.CreatedBy.Email });
mail.setSubject('UUID Batch Job Complete');
mail.setPlainTextBody(emailBody);

Messaging.sendEmail(new List<Messaging.SingleEmailMessage>{ mail });
} catch (Exception e) {
System.debug(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<EmailFolder xmlns="http://soap.sforce.com/2006/04/metadata">
<accessType>Public</accessType>
<name>UnsubscribeLink</name>
<publicFolderAccess>ReadOnly</publicFolderAccess>
</EmailFolder>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<messaging:emailTemplate subject="Edit this subject" recipientType="Contact" >
<messaging:htmlEmailBody > <!-- When creating a new visualforce template, the default option is plainTextEmailBody.
the unsubscribe link will note appear in that case. Convert any visualforce templates to htmlEmailBody before
adding the visualforce component -->
<P>Dear Friend,</P>

<P>It's Thursday! You love to order a pizza on Thursdays! If you order before 5, I'll also throw in some free drinks!</P>

<P>Your friend,</P>

<P>Bob</P>


<c:UnsubscribeLink recipientId="{!recipient.Id}"></c:UnsubscribeLink> <!-- This is the custom component
which can be added to any visualforce email template. It is compatible with both leads and contacts. -->
</messaging:htmlEmailBody>
</messaging:emailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<EmailTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>64.0</apiVersion>
<available>true</available>
<description>Sample template for contact that demonstrates how to use the unsubscribe link visualforce object. </description>
<encodingKey>UTF-8</encodingKey>
<name>Unsubscribe Sample Contact Template</name>
<style>none</style>
<subject>Edit this subject</subject>
<type>visualforce</type>
<uiType>Aloha</uiType>
</EmailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<messaging:emailTemplate subject="Edit this subject" recipientType="Lead" >
<messaging:htmlEmailBody > <!-- When creating a new visualforce template, the default option is plainTextEmailBody.
the unsubscribe link will note appear in that case. Convert any visualforce templates to htmlEmailBody before
adding the visualforce component -->
<P>Dear Friend,</P>

<P>It's Thursday! You love to order a pizza on Thursdays! If you order before 5, I'll also throw in some free drinks!</P>

<P>Your friend,</P>

<P>Bob</P>


<c:UnsubscribeLink recipientId="{!recipient.Id}"></c:UnsubscribeLink> <!-- This is the custom component
which can be added to any visualforce email template. It is compatible with both leads and contacts. -->
</messaging:htmlEmailBody>
</messaging:emailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<EmailTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>64.0</apiVersion>
<available>true</available>
<description>Sample template for lead that demonstrates how to use the unsubscribe link visualforce object. </description>
<encodingKey>UTF-8</encodingKey>
<name>Unsubscribe Sample Lead Template</name>
<style>none</style>
<subject>Edit this subject</subject>
<type>visualforce</type>
<uiType>Aloha</uiType>
</EmailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<messaging:emailTemplate subject="Edit this subject" recipientType="Lead" >
<messaging:plainTextEmailBody > <!-- When creating a new visualforce template, the default option is plainTextEmailBody.
the unsubscribe link will note appear in that case. Convert any visualforce templates to htmlEmailBody before
adding the visualforce component -->
Dear Friend,

It's Thursday! You love to order a pizza on Thursdays! If you order before 5, I'll also throw in some free drinks!

Your friend,

Bob

Copy and paste this in your browser to unsubscribe:
{!Recipient.Unsubscribe_Url_Plain_Text__c} <!-- This field can be
added to any plain text contact or lead email to display the url-->
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<EmailTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>64.0</apiVersion>
<available>true</available>
<description>Sample template for lead that demonstrates how to use the unsubscribe link field in a plain text Visualforce email </description>
<encodingKey>UTF-8</encodingKey>
<name>Unsubscribe Sample Lead Template-Plain Text</name>
<style>none</style>
<subject>Edit this subject</subject>
<type>visualforce</type>
<uiType>Aloha</uiType>
</EmailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<messaging:emailTemplate subject="Edit this subject" recipientType="Contact" >
<messaging:htmlEmailBody > <!-- When creating a new visualforce template, the default option is plainTextEmailBody.
the unsubscribe link will note appear in that case. Convert any visualforce templates to htmlEmailBody before
adding the visualforce component -->
<P>Dear Friend,</P>

<P>It's Thursday! You love to order a pizza on Thursdays! If you order before 5, I'll also throw in some free drinks!</P>

<P>Your friend,</P>

<P>Bob</P>


<c:UnsubscribeLink recipientId="{!recipient.Id}"></c:UnsubscribeLink> <!-- This is the custom component
which can be added to any visualforce email template. It is compatible with both leads and contacts. -->
</messaging:htmlEmailBody>
</messaging:emailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<EmailTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>64.0</apiVersion>
<available>true</available>
<description>Sample template for contact that demonstrates how to use the unsubscribe link visualforce object.</description>
<encodingKey>UTF-8</encodingKey>
<name>Sample Contact Template</name>
<style>none</style>
<subject>Edit this subject</subject>
<type>visualforce</type>
<uiType>Aloha</uiType>
</EmailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<messaging:emailTemplate subject="Edit this subject" recipientType="Lead" >
<messaging:htmlEmailBody > <!-- When creating a new visualforce template, the default option is plainTextEmailBody.
the unsubscribe link will note appear in that case. Convert any visualforce templates to htmlEmailBody before
adding the visualforce component -->
<P>Dear Friend,</P>

<P>It's Thursday! You love to order a pizza on Thursdays! If you order before 5, I'll also throw in some free drinks!</P>

<P>Your friend,</P>

<P>Bob</P>


<c:UnsubscribeLink recipientId="{!recipient.Id}"></c:UnsubscribeLink> <!-- This is the custom component
which can be added to any visualforce email template. It is compatible with both leads and contacts. -->
</messaging:htmlEmailBody>
</messaging:emailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<EmailTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>64.0</apiVersion>
<available>true</available>
<description>Sample template for lead that demonstrates how to use the unsubscribe link visualforce object.</description>
<encodingKey>UTF-8</encodingKey>
<name>Sample Lead Template</name>
<style>none</style>
<subject>Edit this subject</subject>
<type>visualforce</type>
<uiType>Aloha</uiType>
</EmailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<messaging:emailTemplate subject="Edit this subject" recipientType="Lead" >
<messaging:plainTextEmailBody > <!-- When creating a new visualforce template, the default option is plainTextEmailBody.
the unsubscribe link will note appear in that case. Convert any visualforce templates to htmlEmailBody before
adding the visualforce component -->
Dear Friend,

It's Thursday! You love to order a pizza on Thursdays! If you order before 5, I'll also throw in some free drinks!

Your friend,

Bob

Copy and paste this in your browser to unsubscribe:
{!Recipient.Unsubscribe_Url_Plain_Text__c} <!-- This field can be
added to any plain text contact or lead email to display the url-->
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<EmailTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>64.0</apiVersion>
<available>true</available>
<description>Sample template for lead that demonstrates how to use the unsubscribe link field in a plain text Visualforce email.</description>
<encodingKey>UTF-8</encodingKey>
<name>Sample Lead Template-Plain Text</name>
<style>none</style>
<subject>Edit this subject</subject>
<type>visualforce</type>
<uiType>Aloha</uiType>
</EmailTemplate>
Loading
Loading