elixFormsAPI - update syntax and add prepare global function
This commit is contained in:
+3
-6
@@ -42,8 +42,9 @@ runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
var eftlDocumentToBeProcessed = String.raw`
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="ceiling" type="string"][TAG]GETVALUEBYTAG,CORRISPETTIVO_CEILING,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[!-- HACK per numeri corretti!!!1! --]
|
||||
@@ -79,11 +80,7 @@ runtime:
|
||||
|
||||
[%= ritenuta2maxMessage %]
|
||||
[/EFTL]
|
||||
`;
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);
|
||||
|
||||
bru.setVar("elixBase64EftlDocument", base64EncodedDocument);
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
|
||||
Reference in New Issue
Block a user