diff --git a/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Proposta/elixPro - Recupero importi inseriti.yml b/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Proposta/elixPro - Recupero importi inseriti.yml new file mode 100644 index 0000000..75f1e8a --- /dev/null +++ b/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Proposta/elixPro - Recupero importi inseriti.yml @@ -0,0 +1,72 @@ +info: + name: elixPro - Recupero importi inseriti + type: http + seq: 22 + +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: "31630" + disabled: true + - name: x-ef-request-id + value: "31499" + body: + type: json + data: |- + { + "userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script + "userContext": { + "lang": "IT", + "crlf": "\r\n" + } + } + 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="codiciFiscali" type="iterable"][SPLIT regex="##"][TAG]GETVALUEBYTAG,INSERIMENTO_MANUALE_CODFIS;INSERIMENTO_MANUALE,REQUEST,ID_OBJECT,CONCAT,##[/TAG][/SPLIT][/VAR] + [VAR name="importi" type="iterable"][SPLIT regex="##"][TAG]GETVALUEBYTAG,INSERIMENTO_MANUALE_IMPORTO;INSERIMENTO_MANUALE,REQUEST,ID_OBJECT,CONCAT,##[/TAG][/SPLIT][/VAR] + [VAR name="modalita" type="iterable"][SPLIT regex="##"][TAG]GETVALUEBYTAG,INSERIMENTO_MANUALE_MODALITA;INSERIMENTO_MANUALE,REQUEST,ID_OBJECT,CONCAT,##[/TAG][/SPLIT][/VAR] + + [VAR name="countInserimenti" type="number"][SIZE_OF varname="codiciFiscali" /][/VAR] + [% current = 0; %] + + CF: [%= codiciFiscali %] + IM: [%= importi %] + MO: [%= modalita %] + CN: [%= countInserimenti %] + +
| C.F. | +Importo | +Modalità | +
|---|---|---|
| [VALUE_OF varname="codiciFiscali" index="current" /] | +[VALUE_OF varname="importi" index="current" /] | +[VALUE_OF varname="modalita" index="current" /] | +