Automate Schedule - Clone notification list |
Declaration
<AMSKYBOT ACTIVITY="clone_notification" IP="text" PORT="number" USERNAME="text" PASSWORD="text (encrypted)" NOTIFICATIONLISTNAME="text" NOTIFICATIONLISTNEWNAME="text" /> |
Description
Creates a duplicate copy of an existing notification list under a new name.
NOTE:Automate Schedule requires users creating, deleting, cloning or making changes to scheduling object definitions through the web service to be a member of the 'Administrator' role. |
Practical Usage
Can be used to create a copy of an existing notification list which can be modified without compromising the original.
Parameters
Connection
Property |
Type |
Required |
Default |
Markup |
Description |
Connection |
--- |
--- |
--- |
--- |
Indicates where this activity's Automate Schedule credentials should originate from. This is a visual parameter used only during design-time, thus, contains no properties or markups. The available options are:
|
Session |
Text |
Yes if Connection parameter set to Session |
Automate ScheduleSession1 |
SESSION="Session1" |
The name of the session to associate this activity with. This parameter is active only if the Connection parameter is set to Session. If the Connection parameter is set to Host, this parameter is ignored and the remainder of the parameters specified below becomes active. NOTE: Use the End Session activity to end an active Automate Schedule session. |
Server |
Text/Number |
Yes if Connection parameter set to Host |
(Empty) |
|
The Domain Name System (DNS) name (i.e. www.domain.com) or IP address (i.e. 93.184.216.119 ) of the Automate Schedule server with which to establish communication. |
Port |
Number |
Yes if Connection parameter set to Host |
(Empty) |
PORT="8008" |
The TCP/IP port assigned to allow communication with the Automate Schedule server. |
User name |
Text |
Yes if Connection parameter set to Host |
(Empty) |
USERNAME="SuperFlyBot" |
A valid username of a user configured to access the Automate Schedule server. NOTE: Certain Automate Schedule activities may or may not be permitted depending on the permissions set for the user. |
Password |
Text |
Yes if Connection parameter set to Host |
(Empty) |
PASSWORD="encrypted" | A valid password configured for the username entered above. |
Proxy type |
Text (options) |
No |
Default |
|
The type of proxy required for Automate Schedule connections that pass through a proxy server. The available options are:
|
Use authentication |
--- |
--- |
--- |
--- |
If enabled, indicates that proxy authentication is implemented, thus, the authentication-based parameters specified below are put into effect. This is a design-time parameter, therefore, contains no properties or markups. It is active only if the Proxy type parameter is set to HTTP. |
Proxy server |
Text |
No |
(Empty) |
PROXYSERVER="proxy.host.com" |
The host name (server.domain.com) or IP address (xxx.xxx.xxx.xxx) of the proxy server. This parameter is available only if the Proxy type parameter is set to HTTP. |
Proxy username |
Text |
No |
(Empty) |
PROXYUSERNAME="ProxyUser" |
The proxy username to authenticate with. This parameter is available only if the Use Authentication parameter is enabled. |
Proxy password |
Text |
No |
(Empty) |
PROXYPASSWORD="encrypted" |
The proxy password to authenticate with. This parameter is available only if the Use Authentication parameter is enabled. |
Proxy port |
Number |
No |
8008 |
PROXYPORT="8008" |
The port that should be used to connect to the proxy server. This parameter is available only if the Proxy type parameter is set to HTTP. The default value is 8008. |
Notification List
Property |
Type |
Required |
Default |
Markup |
Description |
Name |
Text |
Yes |
(Empty) |
NOTIFICATIONLISTNAME="notify1" |
The name of the original notification list in which to clone. Enter the name manually in the provided text box or click the folder icon to open the Automate Schedule browser which allows connection to the server in order to select from available notification lists. |
New name |
Text |
Yes |
(Empty) |
NOTIFICATIONLISTNEWNAME="notify2" |
The name of the cloned notification list. |
Additional Notes
By default, Automate Schedule has the web services option disabled. This will prevent Automate's Automate Schedule actions from running. To enable the Automate Schedule Web Service, log into Automate Schedule's UI and select from the main menu Admin -> System Settings. Scroll down to the Configure Features section and click the EDIT link. Check the Allow Web Service Requests check box (as shown below) and save the settings.
Example
- The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
- Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.
Description
This sample task demonstrates use of sessions, loop operations, the List notifications and the Clone notification activities. It performs the following steps:
Step 1 - Creates a session.
Step 2 - Retrieves a list of notifications and populates a dataset with results.
Step 3 - Loops through the dataset.
Step 4 - Clones the next notification on the list during each loop process.
Step 5 - Ends the loop.
Step 6 - Ends the session.
<AMSKYBOT SESSION="Skybot_1" IP="10.0.1.69" PORT="8008" USERNAME="admin" PASSWORD="AM4UGBMdEXAVnEiHSYDb/9fo7GhBf4XIJ+LaME" />
<AMSKYBOT ACTIVITY="list_notification" SESSION="Skybot_1" RESULTDATASET="notificationName" />
<AMLOOP ACTIVITY="dataset" DATASET="notificationName"><AMSKYBOT ACTIVITY="clone_notification" SESSION="Skybot_1" NOTIFICATIONLISTNAME="%notificationName%" NOTIFICATIONLISTNEWNAME="%notificationName_2%" /></AMLOOP>
<AMSKYBOT ACTIVITY="clone_notification" SESSION="Skybot_1" NOTIFICATIONLISTNAME="%notificationName%" NOTIFICATIONLISTNEWNAME="%notificationName_2%" />
<AMLOOP ACTIVITY="end" />
<AMSKYBOT ACTIVITY="close_skybot" SESSION="Skybot_1" />