Is there a way to trigger an Event explicitly from another api event?

Hi ,

I would like to trigger an event handler run via another event handler (explicitly , from within the code)

can it be done?

Add Comment
2 Answer(s)

Mmmm…can you explain what your code is trying to do? 
I’ve consider, in one of my other scripts, pulling and searching through the History tab for something, triggering actions based off of what the script found there.  But I haven’t finished that one yet. 

The intended solution from Agile is to utilize the same script trigger (Event, in Agile), and then use the Order number on the Event Subscriber to tell Agile to run the second script after the first.  Try that.  Add a “sleep()” method if you need the second script to wait a couple of milliseconds to avoid conflict. 
Will anything I’ve said work for you?

Agile Angel Answered on August 14, 2017.
Add Comment

hi ,

i have 8 event handlers (with subscribers) that runs oracle script that publishes doc. each of them is running with differenet roles and privileges in order to show differenet affected items subclasses.

the script is running a closed function of agile export so i cannot filter the subclasses hardcoded. (this is the reason im using different handler with different read privileges)

i want to trigger each of the subscribers explicittly on an api code in order to determine which of them to run accroding to some conditions .
somthing like:

“if(x…)
event1.doaction
if (y…)
event2. do action


triggering them by doing the event action (updating attachments table/title block etc… ) is not an option.

Agile User Answered on August 15, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.