locked
Can workflow caculate time? RRS feed

  • Question

  • Is there a way that we could use workflow to caculate time? without any JS or code?
    Wednesday, March 17, 2010 2:17 AM

Answers

  • Hi,

    Not out of the box.  Microsoft has released one accelerator that extends workflow capabilities.  One of those new functions is a 'calculate' function to do simple math for two fields:
    http://crmaccelerators.codeplex.com/releases/view/26691

    Using the same methodology you could write a custom activity plug-in to do time calculations.  We wrote a simple one that allows time difference between two datetimes fields.

    These accelerator come with source code so they are also great for learning.
    Alex Fagundes - www.PowerObjects.com
    Wednesday, March 17, 2010 3:39 AM
  • There is an oob increment function which you may be able to use.

    Leon Tribe

    Want to hear me talk about all things CRM? Check out my blog

    http://leontribe.blogspot.com/

    or hear me tweet @leontribe
    Want to hear me talk about all things CRM? Check out my blog http://leontribe.blogspot.com/ or hear me tweet @leontribe
    • Proposed as answer by Leon TribeMVP Wednesday, March 17, 2010 12:44 PM
    • Marked as answer by Jim Glass Jr Wednesday, March 17, 2010 4:24 PM
    Wednesday, March 17, 2010 12:44 PM

All replies

  • Hi,

    Not out of the box.  Microsoft has released one accelerator that extends workflow capabilities.  One of those new functions is a 'calculate' function to do simple math for two fields:
    http://crmaccelerators.codeplex.com/releases/view/26691

    Using the same methodology you could write a custom activity plug-in to do time calculations.  We wrote a simple one that allows time difference between two datetimes fields.

    These accelerator come with source code so they are also great for learning.
    Alex Fagundes - www.PowerObjects.com
    Wednesday, March 17, 2010 3:39 AM
  • Thank you very much~ I will try that!!!
    Wednesday, March 17, 2010 3:41 AM
  • There is an oob increment function which you may be able to use.

    Leon Tribe

    Want to hear me talk about all things CRM? Check out my blog

    http://leontribe.blogspot.com/

    or hear me tweet @leontribe
    Want to hear me talk about all things CRM? Check out my blog http://leontribe.blogspot.com/ or hear me tweet @leontribe
    • Proposed as answer by Leon TribeMVP Wednesday, March 17, 2010 12:44 PM
    • Marked as answer by Jim Glass Jr Wednesday, March 17, 2010 4:24 PM
    Wednesday, March 17, 2010 12:44 PM