Call/Request a workflow in CRM 4.0 using Javascript
Add a button on Form’s Toolbar/Grid’s Menu Bar for the entity in ISV config file (export ISV config)
Call launchOnDemandWorkflowForm (for button on Form) or launchOnDemandWorkflow (for button on grid) functions and pass the parameters sGrid, iObjType and workflowId.
Save the config file and import it to CRM.
An example of this could be:
<Entity name=”account”>
<ToolBar ValidForCreate=”0″ ValidForUpdate=”1″>
<Button Icon=”/_imgs/mybutton.jpg” [...]
