System Admin and Configuration

Get Involved. Join the Conversation.

Topic

    Neil
    Delay in execution of business rule?Answered
    Topic posted February 22, 2016 by Neil Gold Medal: 3,500+ Points 
    162 Views, 2 Comments
    Title:
    Delay in execution of business rule?
    Content:

    I have a problem with a business rule processing faster than an email is sending.

     

    The business rule looks for the value of field X being "not sent". It then fires the Email Incident Information action, and then sets the value of field X to "sent".

     

    Because we will almost certainly fire this email in other rules, and I wouldn't want to include the same information every time, I created a conditional section within the email that only includes the content is field X = "not sent".

    The email fires, but arrives blank (I actually added a word outside of the conditional section to eliminate issues with email software, and sure enough the word appears!).

    The issue seems to be that the conditional section is looking for field X being "not sent", but the business rule has already changed the value to "sent".

     

    I need a way to somehow add a delay so that the rule waits - say 2 minutes - between the "fire email" and "change field value" actions.

     

    I'd welcome and advice/suggestions.

     

    Thanks!

    Best Comment

    Carl Elliott

    Timing can be an issue.  I had a similar situation when trying to check for the invalid email field on the contact record.  

    Your best option for the delay is to set an escalation timer and then update your field as the action at escalation.  

    Don't forget that while you can set the timer on the escalation to be less than 15 minutes, the utility only runs ever 15 minutes so your update could happen anywhere between 2 minutes and 13 minutes.  

    Comment

     

    • Carl Elliott

      Timing can be an issue.  I had a similar situation when trying to check for the invalid email field on the contact record.  

      Your best option for the delay is to set an escalation timer and then update your field as the action at escalation.  

      Don't forget that while you can set the timer on the escalation to be less than 15 minutes, the utility only runs ever 15 minutes so your update could happen anywhere between 2 minutes and 13 minutes.  

    • Neil

      Cheers Carl. This seems to have done the trick - in a fashion!