info: name: Partecipanti - Body NO fancy HTML type: http seq: 13 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: "34396" body: type: json data: |- { "userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script "userContext": { "lang": "IT", "crlf": "\r\n", "href": "https://procedure.unipr.it/rwe2/module_preview.jsp?MODULE_TAG=RIPARTIZIONE_CCT_DSAN" } } 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="rsp_titolo" type="string"][TAG]GETVALUEBYTAG,RSP_TITOLO,REQUEST,ID_OBJECT[/TAG][/VAR] [VAR name="rsp_cognome" type="string"][TAG]GETVALUEBYTAG,RSP_COGNOME,REQUEST,ID_OBJECT[/TAG][/VAR] [VAR name="rsp_nome" type="string"][TAG]GETVALUEBYTAG,RSP_NOME,REQUEST,ID_OBJECT[/TAG][/VAR] [% responsabileScientificoProponente = rsp_titolo + " " + rsp_cognome + " " + rsp_nome; %] [% secondItem = 1; %] [VAR name="partecipanteIterable" type="iterable"][SPLIT regex="\] "][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,ID_OBJECT[/TAG][/SPLIT][/VAR] [VAR name="partecipante" type="string"][VALUE_OF varname="partecipanteIterable" index="secondItem" /][/VAR] [VAR name="importo" type="string"][TAG]GETVALUEBYTAG,IMPORTO_RIPARTIZIONE,REQUEST,ID_OBJECT[/TAG][/VAR]
Responsabile Scientifico proponente: [%= responsabileScientificoProponente %]
Codice contratto: [TAG]GETVALUEBYTAG,ID_CONTRATTO,REQUEST,ID_OBJECT[/TAG]
Titolo contratto: [TAG]GETVALUEBYTAG,TITOLO_CONTRATTO,REQUEST,ID_OBJECT[/TAG]
Contraente/i: [TAG]GETVALUEBYTAG,CONTRATTO_CONTRAENTI,REQUEST,ID_OBJECT[/TAG]
Partecipante: [%= partecipante %]
Importo (€): [FORMAT type="number" pattern="#,##0.00"][VALUE_OF varname="importo" /][/FORMAT]
Link al modulo: [%= href %]
(se il link non fosse cliccabile, copiarlo e incollarlo in una nuova finestra del browser)
[/EFTL] `); settings: encodeUrl: true timeout: 0 followRedirects: true maxRedirects: 5 forwardAuthorizationHeader: true