Skip to content

Commit ce3a2ae

Browse files
authored
Salesforce email additions (#19856)
* Version bumps * Initial addition of props * Description improvements * Changing senderType to required
1 parent ecc3072 commit ce3a2ae

File tree

2 files changed

+52
-4
lines changed

2 files changed

+52
-4
lines changed

components/salesforce_rest_api/actions/send-email/send-email.mjs

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "salesforce_rest_api-send-email",
55
name: "Send Email",
66
description: "Sends an email. [See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_action.meta/api_action/actions_obj_email_simple.htm)",
7-
version: "0.0.5",
7+
version: "0.1.0",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,
@@ -31,7 +31,51 @@ export default {
3131
logEmailOnSend: {
3232
type: "boolean",
3333
label: "Log Email on Send",
34-
description: "Indicates whether to log the email on the specified records’ activity time lines",
34+
description: "Indicates whether to log the email on the specified records' activity time lines",
35+
optional: true,
36+
},
37+
relatedRecordId: {
38+
type: "string",
39+
label: "Related Record ID",
40+
description: "The ID of a record that is not a person (for example, a case record). If `logEmailOnSend` is included, this is the ID of a secondary record (except a lead) to log the email to.",
41+
optional: true,
42+
},
43+
addThreadingTokenToBody: {
44+
type: "boolean",
45+
label: "Add Threading Token to Body",
46+
description: "Whether to create a unique token for the related record and add it to the email body. When the related record is a case record, Email-to-Case uses the token to link future email responses to that case.",
47+
optional: true,
48+
},
49+
addThreadingTokenToSubject: {
50+
type: "boolean",
51+
label: "Add Threading Token to Subject",
52+
description: "The same as `Add Threading Token to Body`, but for the email subject.",
53+
optional: true,
54+
},
55+
senderType: {
56+
type: "string",
57+
label: "Sender Type",
58+
description: "Email address used as the email's **From** and **Reply-To** addresses. In scheduled flows, the only valid value is `OrgWideEmailAddress`.",
59+
options: [
60+
{
61+
label: "CurrentUser - Email address of the user running the flow (default)",
62+
value: "CurrentUser",
63+
},
64+
{
65+
label: "DefaultWorkflowUser - Email address of the default workflow user",
66+
value: "DefaultWorkflowUser",
67+
},
68+
{
69+
label: "OrgWideEmailAddress - The organization-wide email address, specified in senderAddress",
70+
value: "OrgWideEmailAddress",
71+
},
72+
],
73+
default: "CurrentUser",
74+
},
75+
senderAddress: {
76+
type: "string",
77+
label: "Sender Address",
78+
description: "If `Sender Type` is `OrgWideEmailAddress`, this is the organization-wide email address to be used as the sender.",
3579
optional: true,
3680
},
3781
},
@@ -53,8 +97,12 @@ export default {
5397
emailAddresses: this.emailAddress,
5498
emailSubject: this.emailSubject,
5599
emailBody: this.emailBody,
56-
senderType: "CurrentUser",
100+
senderType: this.senderType,
57101
logEmailOnSend: this.logEmailOnSend,
102+
relatedRecordId: this.relatedRecordId,
103+
addThreadingTokenToBody: this.addThreadingTokenToBody,
104+
addThreadingTokenToSubject: this.addThreadingTokenToSubject,
105+
senderAddress: this.senderAddress,
58106
},
59107
],
60108
},

components/salesforce_rest_api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/salesforce_rest_api",
3-
"version": "1.11.1",
3+
"version": "1.11.2",
44
"description": "Pipedream Salesforce (REST API) Components",
55
"main": "salesforce_rest_api.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)