From 7c1ab24a6420fa91c5a538ba9dd78bdef32c02a2 Mon Sep 17 00:00:00 2001 From: Pier-Paolo Mammi Date: Wed, 25 Mar 2026 17:53:52 +0100 Subject: [PATCH] add requestId to computed values --- .../Get request details.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/collections/elixForms API v2/Runner- Get all requests by ModuleTag and status/Get request details.yml b/collections/elixForms API v2/Runner- Get all requests by ModuleTag and status/Get request details.yml index 5a3a7e0..8cb7b5e 100644 --- a/collections/elixForms API v2/Runner- Get all requests by ModuleTag and status/Get request details.yml +++ b/collections/elixForms API v2/Runner- Get all requests by ModuleTag and status/Get request details.yml @@ -75,6 +75,7 @@ runtime: // Get response data const request = res.getBody().value.request; + const idRequest = request.idRequest ?? 0; const recordId = request.steps?.find(s => s.stepHeader == "Dati generali")?.schemas?.find(s => s.schemaId == "341")?.records?.[0]?.recordId ?? ""; if (recordId != "") @@ -86,7 +87,7 @@ runtime: const contraentiCsv = contraenti.split("\n").map(c => c.split(", CF/PIVA: ")[0]).join(", "); const responsabiliCsv = responsabili.split("\n").map(r => r.split(", CF: ")[0]).join(", "); - const stringElement = '{ "S_341_'+recordId+'_COL0118": "' + responsabiliCsv + '", "S_341_'+recordId+'_COL0119": "' + contraentiCsv + '" }'; + const stringElement = '{ "idRequest": ' + idRequest + ', "S_341_'+recordId+'_COL0118": "' + responsabiliCsv + '", "S_341_'+recordId+'_COL0119": "' + contraentiCsv + '" }'; const jsonElement = JSON.parse(stringElement); jsonOutput.push(jsonElement);