Skip to content

Commit c1c3e69

Browse files
committed
fix(sap_concur): wire the travel request sendback comment through the block
move_travel_request accepts a documented query comment that Concur applies to the sendback action, but the params branch never passed it and the block's only comment field is gated to create_report_comment, so the value was unreachable from the UI. Uses a dedicated sendbackComment subblock rather than widening the existing comment field: that one is required for create_report_comment while this is optional, so sharing an id would both clash on required-ness and let a value bleed between the two operations.
1 parent cd70568 commit c1c3e69

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

apps/sim/blocks/blocks/sap_concur.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,14 @@ Return ONLY the YYYY-MM-DD date - no explanations, no extra text.`,
10071007
condition: { field: 'operation', value: 'sap_concur_create_report_comment' },
10081008
required: { field: 'operation', value: 'sap_concur_create_report_comment' },
10091009
},
1010+
{
1011+
id: 'sendbackComment',
1012+
title: 'Sendback Comment',
1013+
type: 'long-input',
1014+
placeholder: 'Visible wherever Request comments are shown (sendback only)',
1015+
condition: { field: 'operation', value: 'sap_concur_move_travel_request' },
1016+
mode: 'advanced',
1017+
},
10101018
{
10111019
id: 'includeAllComments',
10121020
title: 'Include All Comments',
@@ -2264,6 +2272,7 @@ Return ONLY the JSON object - no explanations, no extra text.`,
22642272
body: params.body || undefined,
22652273
userId: params.travelRequestUserId || undefined,
22662274
companyID: params.companyID || undefined,
2275+
comment: params.sendbackComment || undefined,
22672276
}
22682277
case 'sap_concur_list_travel_request_comments':
22692278
return { ...auth, requestUuid: params.requestUuid }
@@ -2534,6 +2543,11 @@ Return ONLY the JSON object - no explanations, no extra text.`,
25342543
description:
25352544
'Optional company identifier for a travel request workflow action (documented as companyID, distinct from companyUuid)',
25362545
},
2546+
sendbackComment: {
2547+
type: 'string',
2548+
description:
2549+
'Optional comment on a travel request workflow action — Concur applies it only to the sendback action, and it is visible wherever Request comments are shown',
2550+
},
25372551
travelRequestApprovedBefore: { type: 'string', description: 'Travel requests approved before' },
25382552
travelRequestApprovedAfter: { type: 'string', description: 'Travel requests approved after' },
25392553
travelRequestModifiedBefore: { type: 'string', description: 'Travel requests modified before' },

0 commit comments

Comments
 (0)