Skip to content
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
fix(docusign): use canonical param documentFile instead of raw subBlo…
…ck IDs
  • Loading branch information
waleedlatif1 committed Mar 19, 2026
commit 8c688040618168ea81fc61d57bbf3dac9c1664b7
15 changes: 3 additions & 12 deletions apps/sim/blocks/blocks/docusign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,22 +272,13 @@ export const DocuSignBlock: BlockConfig<DocuSignResponse> = {
config: {
tool: (params) => `docusign_${params.operation}`,
params: (params) => {
const {
oauthCredential,
operation,
uploadDocument,
documentRef,
listEnvelopeStatus,
...rest
} = params
const { oauthCredential, operation, documentFile, listEnvelopeStatus, ...rest } = params

const cleanParams: Record<string, unknown> = {
oauthCredential,
}

const file = normalizeFileInput(params.uploadDocument || params.documentRef, {
single: true,
})
const file = normalizeFileInput(documentFile, { single: true })
if (file) {
cleanParams.file = file
}
Expand All @@ -302,7 +293,7 @@ export const DocuSignBlock: BlockConfig<DocuSignResponse> = {
cleanParams.status = rest.envelopeStatus
}

const excludeKeys = ['uploadDocument', 'documentRef', 'envelopeStatus']
const excludeKeys = ['envelopeStatus']
for (const [key, value] of Object.entries(rest)) {
if (value !== undefined && value !== null && value !== '' && !excludeKeys.includes(key)) {
cleanParams[key] = value
Expand Down
Loading