add requestId to computed values
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user