From 2076d93c7b4411ba5fe18ab3c2295f671b677a37 Mon Sep 17 00:00:00 2001 From: Pier-Paolo Mammi Date: Mon, 23 Feb 2026 15:44:09 +0100 Subject: [PATCH] add: elixFormsAPI - get year from date --- .../Get year from date.yml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Get year from date.yml diff --git a/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Get year from date.yml b/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Get year from date.yml new file mode 100644 index 0000000..1da2240 --- /dev/null +++ b/collections/elixForms API v2/EFTL processing/CCT - Liquidazione Compensi/Get year from date.yml @@ -0,0 +1,50 @@ +info: + name: Get year from date + type: http + seq: 20 + +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" + } + } + 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" /] + [TAG]SCHEMAID,709,COL0117,IUQOID, , ,,YYYY[/TAG] + [/EFTL] + `); + +settings: + encodeUrl: true + timeout: 0 + followRedirects: true + maxRedirects: 5