From a60b96b71173ede570f2a98e4b44c34fb39f91f5 Mon Sep 17 00:00:00 2001 From: Shady Al Shoha <48188608+shadyshoha@users.noreply.github.com> Date: Tue, 28 Oct 2025 21:10:10 -0700 Subject: [PATCH 1/2] Salesforce: Make fieldsToUpdate optional in Update Record action Update the Salesforce Update Record action to make the fieldsToUpdate prop optional, allowing users to utilize the additionalFields prop immediately after selecting the SObject Type without needing to manually select fields first. Changes: - Made fieldsToUpdate prop optional in update-record.mjs - Updated additionalProps() to handle empty fieldsToUpdate gracefully - additionalFields now appears immediately after SObject Type selection This change maintains backward compatibility with existing workflows that use manual field selection while providing a more flexible workflow for users who prefer to specify all fields via additionalFields. --- .../actions/update-record/update-record.mjs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/salesforce_rest_api/actions/update-record/update-record.mjs b/components/salesforce_rest_api/actions/update-record/update-record.mjs index 73c45117f595c..61ea4e9498d2a 100644 --- a/components/salesforce_rest_api/actions/update-record/update-record.mjs +++ b/components/salesforce_rest_api/actions/update-record/update-record.mjs @@ -44,6 +44,7 @@ export default { objType: c.sobjectType, }), ], + optional: true, reloadProps: true, }, }, @@ -57,8 +58,12 @@ export default { } = this; const fields = await this.salesforce.getFieldsForObjectType(sobjectType); - const selectedFields = fields.filter(({ name }) => fieldsToUpdate.includes(name)); - const selectedFieldProps = this.convertFieldsToProps(selectedFields); + // Only generate props for manually selected fields if any were selected + let selectedFieldProps = {}; + if (fieldsToUpdate && fieldsToUpdate.length > 0) { + const selectedFields = fields.filter(({ name }) => fieldsToUpdate.includes(name)); + selectedFieldProps = this.convertFieldsToProps(selectedFields); + } return { docsInfo: { From 69ada515eaaa62166758f697bfeb572b45b72d1d Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Fri, 21 Nov 2025 13:32:52 -0500 Subject: [PATCH 2/2] updates --- .../actions/update-record/update-record.mjs | 4 ++-- components/salesforce_rest_api/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/salesforce_rest_api/actions/update-record/update-record.mjs b/components/salesforce_rest_api/actions/update-record/update-record.mjs index 61ea4e9498d2a..b1750b1d7e534 100644 --- a/components/salesforce_rest_api/actions/update-record/update-record.mjs +++ b/components/salesforce_rest_api/actions/update-record/update-record.mjs @@ -8,7 +8,7 @@ export default { key: "salesforce_rest_api-update-record", name: "Update Record", description: "Update fields of a record. [See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_update_fields.htm)", - version: "0.3.4", + version: "0.3.5", annotations: { destructiveHint: true, openWorldHint: true, @@ -23,7 +23,7 @@ export default { "objectType", ], description: "The type of object to update a record of.", - + reloadProps: true, }, recordId: { propDefinition: [ diff --git a/components/salesforce_rest_api/package.json b/components/salesforce_rest_api/package.json index ffcd9a09efc31..710b57285c2a8 100644 --- a/components/salesforce_rest_api/package.json +++ b/components/salesforce_rest_api/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/salesforce_rest_api", - "version": "1.9.2", + "version": "1.9.3", "description": "Pipedream Salesforce (REST API) Components", "main": "salesforce_rest_api.app.mjs", "keywords": [