elixForms API v2
- add no fancy html request for e-mail body
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Codici fiscali ripartizioni
|
name: Codici fiscali ripartizioni
|
||||||
type: http
|
type: http
|
||||||
seq: 25
|
seq: 26
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Notifiche email partecipanti - Body
|
name: Notifiche email partecipanti - Body
|
||||||
type: http
|
type: http
|
||||||
seq: 19
|
seq: 20
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Notifiche email partecipanti - Subject
|
name: Notifiche email partecipanti - Subject
|
||||||
type: http
|
type: http
|
||||||
seq: 18
|
seq: 19
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+62
@@ -0,0 +1,62 @@
|
|||||||
|
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: "32873"
|
||||||
|
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; %]
|
||||||
|
|
||||||
|
<h2>È necessario compilare la DSAN collegata all'istanza del modulo "Ripartizione Utili / Compensi - Presentazione Proposta" i cui dati sono riportati nel seguito!</h2>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<h3>Riepilogo dei dati della Proposta</h3>
|
||||||
|
<p>Responsabile Scientifico proponente: <b>[%= responsabileScientificoProponente %]</b></p>
|
||||||
|
<p>Codice contratto: <b>[TAG]GETVALUEBYTAG,ID_CONTRATTO,REQUEST,ID_OBJECT[/TAG]</b></p>
|
||||||
|
<p>Titolo contratto: <b>[TAG]GETVALUEBYTAG,TITOLO_CONTRATTO,REQUEST,ID_OBJECT[/TAG]</b></p>
|
||||||
|
<p>Contraente/i: <b>[TAG]GETVALUEBYTAG,CONTRATTO_CONTRAENTI,REQUEST,ID_OBJECT[/TAG]</b></p>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<p><b>Il link al modulo di presentazione della DSAN è: [%= href %]</b></p>
|
||||||
|
[/EFTL]
|
||||||
|
`);
|
||||||
|
|
||||||
|
settings:
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
followRedirects: true
|
||||||
|
maxRedirects: 5
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Partecipanti - CF per verifica DSAN
|
name: Partecipanti - CF per verifica DSAN
|
||||||
type: http
|
type: http
|
||||||
seq: 16
|
seq: 17
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Partecipanti - Importo PTA
|
name: Partecipanti - Importo PTA
|
||||||
type: http
|
type: http
|
||||||
seq: 15
|
seq: 16
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Partecipanti - Importo docente
|
name: Partecipanti - Importo docente
|
||||||
type: http
|
type: http
|
||||||
seq: 14
|
seq: 15
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Partecipanti - Riga dati completi ripartizione
|
name: Partecipanti - Riga dati completi ripartizione
|
||||||
type: http
|
type: http
|
||||||
seq: 17
|
seq: 18
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Partecipanti - hasDSAN
|
name: Partecipanti - hasDSAN
|
||||||
type: http
|
type: http
|
||||||
seq: 13
|
seq: 14
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Recupero importo richiedente da proposta
|
name: Recupero importo richiedente da proposta
|
||||||
type: http
|
type: http
|
||||||
seq: 26
|
seq: 27
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Ripartizioni - Count da form partecipante
|
name: Ripartizioni - Count da form partecipante
|
||||||
type: http
|
type: http
|
||||||
seq: 20
|
seq: 21
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Tabella HTML ripartizioni FOR ADVANCED
|
name: Tabella HTML ripartizioni FOR ADVANCED
|
||||||
type: http
|
type: http
|
||||||
seq: 23
|
seq: 24
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Tabella HTML ripartizioni FOR
|
name: Tabella HTML ripartizioni FOR
|
||||||
type: http
|
type: http
|
||||||
seq: 22
|
seq: 23
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: Tabella HTML ripartizioni WHILE
|
name: Tabella HTML ripartizioni WHILE
|
||||||
type: http
|
type: http
|
||||||
seq: 21
|
seq: 22
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: elixPro - Recupero importi inseriti
|
name: elixPro - Recupero importi inseriti
|
||||||
type: http
|
type: http
|
||||||
seq: 24
|
seq: 25
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
info:
|
info:
|
||||||
name: elixPro - Template Delibera
|
name: elixPro - Template Delibera
|
||||||
type: http
|
type: http
|
||||||
seq: 27
|
seq: 28
|
||||||
|
|
||||||
http:
|
http:
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
Reference in New Issue
Block a user