lauchOnDemandWorkflow - get rid of confirmation RRS feed

  • Question

  • I'm using the launchOnDemandWorkflow from the opportunity form that is in the OnChange code of a custom field.  The workflow does only 1 thing and that's send an email.  It does it great - email is in history of opportunity and everything. YEA!

    The issue I'm having is the ding dang box that you have to click OK on before it will run the workflow.  I don't want my user to see this as they won't know what it is and it will only create support calls. 

    I tried using the code here: http://jianwang.blogspot.com/2008/07/crm-40-use-javascript-excutecalllaunch.html

     but I keep getting an 'expected Object' error.

    Any help would be great!


    Tuesday, November 8, 2011 7:53 PM


  • I didn't figure out how to get rid of the confirmation box - but I did learn something.  The code that I was getting an error on is now working, figured it out late yesterday.

    I guess when the code on the Forms in CRM is run - it runs it from top to bottom, it doesn't look for functions first then does the rest.  Once I moved the code for the workflow function to the very top it ran fine.  BIG lesson learned there.

    Although it is working, I'm going to look at the code you have in the link as it's a lot more compact.  Thanks!


    • Marked as answer by lifeIsPunny Wednesday, November 9, 2011 2:19 PM
    Wednesday, November 9, 2011 2:18 PM

All replies