IsTriggeredBy Function
IsTriggeredBy (trigger as String) as Boolean
Category: | Logical |
Description: | Returns true if current operation was triggered by specified trigger |
Supported Context: | BusinessRules |
Parameters: | |
trigger as String | New - Business rule was fired as a result of a new object being created NewFromTemplate - Business rule was fired as a result of a new project or milestone being created from a template NewTemplate - Business rule was fired as a result of a template being created ChangeType - Business rule was fired as a result of an object change type action Import - Business rule was fired as a result of import from MS project CustomAction - Business rule was fired as a result of a custom action Interact - Business rule was fired as a result of an email received by InterAct mailbox Login - Business rule is fired as a result of a user logging in Counters NewFromObject - Business rule is fired as a result of a copying an object API - Business rule is fired if triggered from an API call Mobile - Business rule is fired when triggered from a mobile app (as opposed to web browser) Trackit - Business rule is fired when email is tracked with Trackit Other Actions - Default behavior |
Returned value as Boolean | Returns true if current operation was triggered by specified trigger |
Example #1 |
To serve as a notification to organization administrators whenever a new template is created, Users can create a workflow rule that’s triggered when a new project is created from template IsTriggeredBy('NewTemplate') |