Script modules are used to define commonly used library functions. Modules can be called from pre work, post work like server environment, or form and validation rule like client environment.
...
- Click "+" icon from "Script Modules"
- Specify the module name. Because the module name is used in a script environment, whitespace or other punctuation chars cannot be used for it.
- Modify the module content as a following script:
...
Expand |
---|
|
Http Request | $Headers |
---|
POST /rest/v1/executeModule HTTP/1.1 Host: mydomain.emakin.com Authorization: Bearer F8C......8B X-My-Header: MyValue { "apiKey": "49......72", "logonId": "myuser@emakin.com", "logonProvider": "Organization", "process" :"c6acc319-76cd-4265-abc1-d4ee2698dfbd", "module": "Module", "function" :"myFunction", "arguments" : [] } | | Hosthost": ["mydomain.emakin.com"],
" |
| XMyHeaderREMOTEADDRREMOTEPORT,
|
$Cookies
Specifies the http context request cookies as object instance.
Expand |
---|
|
Http Request | $Cookie |
---|
POST /rest/v1/executeModule HTTP/1.1 Host: mydomain.emakin.com Authorization: Bearer F8C......8B Cookie: MyCookie=1; MyOtherCookie=2
{ "apiKey": "49......72", "logonId": "myuser@emakin.com", "logonProvider": "Organization", "process" :"c6acc319-76cd-4265-abc1-d4ee2698dfbd", "module": "Module", "function" :"myFunction", "arguments" : [] } | $Cookie defined as; Code Block |
---|
$Cookie = {
"mycookie": "1",
"myothercookie": "2"
} |
|
|