elixFormsAPI - update syntax and add prepare global function
This commit is contained in:
@@ -15,39 +15,28 @@ http:
|
||||
type: query
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"requestId\": 5102, // <(*) id della request>\r
|
||||
|
||||
\ \"clientUserId\": 29, // <id dell'utenza \"reale\", (non quella sistemistica) che ha generato la riapertura, i.e. utenza loggata>\r
|
||||
|
||||
\ \"reopeningReason\": \"string\", // <motivazine della riapertura>\r
|
||||
|
||||
\ \"reopeningNotificationDate\": {{elixReopeningNotificationDate}}, // <data in formato ISO: \"2021-05-18T00:00:00\"> (viene precalcolata dal pre-request script!)\r
|
||||
|
||||
\ \"reopenLogId\": null, // <se esiste un log di storicizzazione da aggiornare e si conosce il generic id della scheda; se non specificato logga l'operazione in nuova scheda>\r
|
||||
|
||||
\ \"reopeningAttachmentFileName\": null, // <nome del file in attach, i.e. miofile.pdf>\r
|
||||
|
||||
\ \"reopeningAttachmentMimeType\": null, // <mimetype del file in attach, i.e. \"application/pdf\">\r
|
||||
|
||||
\ \"reopeningAttachment\": null // <bytes del file in attach>\r
|
||||
|
||||
}\r\n"
|
||||
data: |
|
||||
{
|
||||
"requestId": 5102, // <(*) id della request>
|
||||
"clientUserId": 29, // <id dell'utenza "reale", (non quella sistemistica) che ha generato la riapertura, i.e. utenza loggata>
|
||||
"reopeningReason": "string", // <motivazine della riapertura>
|
||||
"reopeningNotificationDate": {{elixReopeningNotificationDate}}, // <data in formato ISO: "2021-05-18T00:00:00"> (viene precalcolata dal pre-request script!)
|
||||
"reopenLogId": null, // <se esiste un log di storicizzazione da aggiornare e si conosce il generic id della scheda; se non specificato logga l'operazione in nuova scheda>
|
||||
"reopeningAttachmentFileName": null, // <nome del file in attach, i.e. miofile.pdf>
|
||||
"reopeningAttachmentMimeType": null, // <mimetype del file in attach, i.e. "application/pdf">
|
||||
"reopeningAttachment": null // <bytes del file in attach>
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "var currentDate = new Date().toISOString();\r
|
||||
code: |-
|
||||
var currentDate = new Date().toISOString();
|
||||
|
||||
\r
|
||||
console.log(currentDate);
|
||||
|
||||
console.log(currentDate);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixReopeningNotificationDate\", JSON.stringify(currentDate));"
|
||||
bru.setVar("elixReopeningNotificationDate", JSON.stringify(currentDate));
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
|
||||
Reference in New Issue
Block a user