Executing another script when an event is created or modifie
Posted: Mon Feb 15, 2016 11:51 am
How can I execute another script when an event is created or modified?
I'd got a couple of potential things that I'd like to do after an event is either created or is modified. I've looked through the documentation but I can't see anything there that explains how to call another script.
I need the Event ID (which appears to be inside of $sc_EventID. I see that this is available for records that are being edited or deleted but not for records that are being created. I'm guessing that I'll have to create my own variable that will store the results of the event ID after the event has been created.
I'd also like the action being performed: i.e. is this is new event or an edit to an existing event. I believe that is found inside of $sc_Operation.
So my question is where do I put the Perform Script step if I want to call a script of my own using these two values. My educated guess would be near the end of DayBack's Create Edit Delete Event script. Just above the block for Generate Output for result... It's there where I would have to check to see if $sc_EventID is blank and if so, get the value from the Event ID field.
Am I correct?
I'd got a couple of potential things that I'd like to do after an event is either created or is modified. I've looked through the documentation but I can't see anything there that explains how to call another script.
I need the Event ID (which appears to be inside of $sc_EventID. I see that this is available for records that are being edited or deleted but not for records that are being created. I'm guessing that I'll have to create my own variable that will store the results of the event ID after the event has been created.
I'd also like the action being performed: i.e. is this is new event or an edit to an existing event. I believe that is found inside of $sc_Operation.
So my question is where do I put the Perform Script step if I want to call a script of my own using these two values. My educated guess would be near the end of DayBack's Create Edit Delete Event script. Just above the block for Generate Output for result... It's there where I would have to check to see if $sc_EventID is blank and if so, get the value from the Event ID field.
Am I correct?