Changes

Jump to: navigation, search

Workflows Overview

30 bytes removed, 18:38, 23 May 2019
Trigger a Workflow from a Custom Browser Script
'''Level 1''': _triggerwf('@opportunityid@',''workflowid'');
:::::: Example:
 
Example:
_triggerwf('@opportunityid@',98765);
'''Level 2''': _triggerwf('@eventid@',''workflowid'',26);
:::::: Example:
_triggerwf('@eventid@',98765,26);
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==
Smartstaff
1,385
edits

Navigation menu