'''Level 1''': _triggerwf('@opportunityid@',''workflowid'');
* *:::::: Example:*
_triggerwf('@opportunityid@',98765);
'''Level 2''': _triggerwf('@eventid@',''workflowid'',26);
* *:::::: Example:* _triggerwf('@eventid@',98765,26);
_triggerwf('@eventid@',98765,26);
('''26''' is the objecttype for Level 2 activities, and will be the same for all Level 2 workflows)
Notes:
* *:::::* You must not select Let current user select target user from this role for the Routing of workflows triggered by script, as they will not execute.*:::::* Because the workflow is triggered when the script executes it happens before the record is saved. If the workflow changes the Status or a Custom Field value, when the record on the screen is actually saved it will overwrite any changes made by the workflow by those on the page that is being saved. Accordingly you should include any Status or Custom Field changes within the JavaScript that triggers the Workflow.*:::::* If this function is called with a button on a page where standard libraries are not included, make sure to include /js/sstools.js (Example:<script src="js/sstools.js" type="text/javascript"></script>).*
==Using variables with workflows==