info: name: Numero ripartizioni da form partecipanti type: http seq: 3 http: method: POST url: "{{elixFormsApiUrl}}/eftl/process/v1" headers: - name: x-requested-with value: XMLHttpRequest - name: x-api-key value: "{{elixFormsWsAuthenticationToken}}" - name: x-ef-request-id value: "19758" body: type: json data: "{\r \ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r \ \"userContext\": {\r \ \"lang\": \"IT\",\r \ \"crlf\": \"\\r\\n\"\r \ }\r }" auth: inherit runtime: scripts: - type: before-request code: "// Copy-pasta your EFTL document below inside the template literals (`)\r var eftlDocumentToBeProcessed = String.raw`\r [EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r [VAR name=\"ripartizioniIterable\" type=\"iterable\"][SPLIT regex=\"#\"][TAG]SCHEMAID,538,COL0005,ID_OBJECT,,#[/TAG][/SPLIT][/VAR]\r [VAR name=\"ripartizioniCount\" type=\"string\"][SIZE_OF varname=\"ripartizioniIterable\" /][/VAR]\r \r [%= ripartizioniCount %]\r [/EFTL]\r `;\r \r var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r \r bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);" settings: encodeUrl: true timeout: 0 followRedirects: true maxRedirects: 5