TriggerEvent
Trigger custom events that are defined with the [Custom Event Trigger](/api/triggers/custom/custom)
Signature
public void TriggerEvent(string eventName, bool useArgs = true)
Parameters
eventName
string required
Name of the custom event trigger defined with a UI custom trigger
useArgs
bool
Default:
True
Forward the currently available arguments to the custom trigger
Return Type
void
Example
using System;
public class CPHInline
{
public bool Execute()
{
//Define the eventName
string eventName = "SB_Docs_Trigger";
//Fire the custom event trigger by eventName and
//sending the current available arguments to it
CPH.TriggerEvent(eventName, true)
return true;
}
}