...
Event information can be accessed with c.GetHttpItem("NoticifationArgs") in environments that can use macros.
General E-mail sending (Factory.ActionFactory: TimedSendMail object)
Description | It is used to send emails at the specified time. |
---|
Request |
Code Block |
---|
| {
"__type": "Factory.ActionFactory:TimedSendMail",
"BodyReport": "",
"Attachments": [
{
"Report": "",
"DisplayName" : ""
}
],
"Subject": "..",
"ToMail": "...",
"Timed": {
"Period": { "PeriodType": "Week", "Value": 1 }
"Offset" : { "Days": 6, "Hours":22 , Minutes:30 }
}
} |
|
---|
Definition Values | - BodyReport (path): It is the HTML report definition way to be used for the email body. Examples can be found under Settings/Notifications/Templates.
Attachments: Attachments list
Report (path) : It is the report definition path to be used for the attached file. Zip, HTML, Excel, CSV report definitions can be used. There are examples under Settings/Notifications/Templates. - DisplayName(string) : The name of the attachment file. If not defined, it is named with the additional order no.
Subject(string): It is the e-mail header. Supports simple macros. The query used is written in [Query], the number of results found is written in [TotalDoc].
- ToMail (string): It allows sending messages to email addresses. Supports macros.
- Language(string) : If defined, all Localize processes in the email are done with this language.
- Timed: It is used to determine the start time and repeat period. The example here will run every Friday at 22:30.
- Attributes : In any environment where macros can be used, the content can be accessed using the key given to the objects to be written. Example: c.GetHttpItem("MyNameAttribute")
|
---|
Example |
Code Block |
---|
| {
"__type": "Factory.ActionFactory:TimedSendMail",
"BodyReport": "%App%\\Settings\\Notifications\\Templates\\MySimpleReport.html",
"Subject": "Informative message",
"ToMail":"....;....",
"Timed": {
"Period": { "PeriodType": "Week", "Value": 1 }
"Offset" : { "Days": 6, "Hours":22 , Minutes:30 }
}
} |
|
---|
Running a
...
command line task (Factory.ActionFactory: TimedRunCommand object)
Description | It sends e-mails when the conditions to be determined are met. |
---|
Request |
Code Block |
---|
| {
"__type": "Factory.ActionFactory:TimedRunCommand",
"FileName": "",
"Arguments": "",
"UseShellExecute": true/false,
"CreateNoWindow": true/false,
"WorkingDirectory":"",
"UserName":"",
"Password":"",
"Timeout":0;
"Timed": {
"Period": { "PeriodType": "Month", "Value": 3 }
"Offset": { "Days": 20, "Hours":10 , Minutes:0 }
}
} |
|
---|
Definition Values | - It is equivalent to the features in the ProcessStartInfo link. Definitions other than FileName are optional.
- Timed: It is used to determine the start time and repeat period.
|
---|
Example |
Code Block |
---|
| {
"__type": "Factory.ActionFactory:TimedRunCommand",
"FileName":"%SystemX86%\\cmd.exe ping 127.0.0.1 -r 9",
"Timed": {
"Period": { "PeriodType": "Day", "Value": 1 }
"Offset": { "Hours":10 , Minutes:0 }
}
} |
|
---|
...