Posted Mon, 19 Dec 2022 17:15:45 GMT by Dane Briggs Systems Engineer
I have a single task that is triggered by multiple schedules.  I want to set a variable so that I know which schedule triggered the task.  

I've tried multiple Object Triggers and Conditions with no success. Is there anyway to accomplish this WITHOUT creating a separate task for each schedule?

Name
AMTrigger.Trigger
AMTrigger.AML
AMTrigger.TaskName

Automate Plus 11.7.0.90
Posted Tue, 01 Aug 2023 09:52:57 GMT by Eden Constantino

When a trigger fires, Automate creates a dataset called  AMTrigger.  The AMTrigger dataset has a field called Trigger  which basically holds the name of the event that triggered the execution.

Each event or condition contains a unique name as shown below 

 

AMTrigger.Trigger

Event Name

Event Log

AMEVENTLOGTRIGGER

File System

AMFILETRIGGER

Idle

AMIDLETRIGGER

Key

AMKEYTRIGGER

Performance

AMPERFORMANCETRIGGER

Process

AMPROCESSTRIGGER

Schedule

AMSCHEDULETRIGGER

Service

AMSERVICETRIGGER

SNMP Trap

AMSNMPTRIGGER

Startup

AMSTARTUPTRIGGER

Window

AMWINDOWTRIGGER

WMI

AMWMITRIGGER



by outputing %AMTrigger.Trigger% you should be able to get the info you are looking for
 

You must be signed in to post in this forum.