info: name: Calcolo ore equivalenti type: http seq: 18 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: "22737" disabled: true - name: x-ef-request-id value: "22224" disabled: true - name: x-ef-request-id value: "23663" body: type: json data: |- { "userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script "userContext": { "lang": "IT", "crlf": "\r\n", "useTestCF": false } } auth: inherit runtime: scripts: - type: before-request code: |- const { prepareEftlDocument } = require("./elixFormsJs.js") // Copy-pasta your EFTL document below inside the template literals (`) prepareEftlDocument(String.raw` [EFTL][HEADER name="trimDocument" value="true" type="boolean" /] [VAR name="importo" type="number"][TAG]GETVALUEBYTAG,IMPORTO_RIPARTIZIONE_ASSEGNATA,REQUEST,IUQOID[/TAG][/VAR] [VAR name="fattore" type="number"][TAG]GETVALUEBYTAG,FATTORE_CONVERSIONE_ORE,REQUEST,IUQOID[/TAG][/VAR] [VAR name="importo2" type="number"][TAG]SCHEMAID,709,COL0118,IUQOID, , [/TAG][/VAR] [VAR name="fattore2" type="number"][TAG]SCHEMAID,709,COL0120,IUQOID, , [/TAG][/VAR] [VAR name="oreEquivalenti" type="number"][% oreEquivalenti = importo2 * fattore2; %][/VAR] [%= importo * fattore %] [%= crlf %] [%= oreEquivalenti %] [/EFTL] `); settings: encodeUrl: true timeout: 0 followRedirects: true maxRedirects: 5