I'm trying to create an escalation that checks on a date and returns if it's after three days not including Weekends. In the escalation for my trigger SQL I have
oppo_type = 'projectprebid' AND
oppo_deleted IS NULL AND
oppo_biddate IS NOT NULL AND
oppo_status = 'In Progress' AND
oppo_biddatepastdue = '0' AND
oppo_stage = 'nextstage' AND
oppo_biddate
But it's not quite working for the obvious reasons that the DATEADD implementation is wrong and it doesn't have the weekends added either.
oppo_type = 'projectprebid' This is they type of opportunity
oppo_deleted IS NULL check to make sure it's not deleted
oppo_biddate IS NOT NULL the field itself is not empty
oppo_status = 'In Progress' The status of the opportunity is still working
oppo_biddatepastdue = '0' Make sure this is the first time returning this opportunity (if all returns true then email will be sent to assigned user and this will change to 1)
oppo_stage = 'biddatestage' Ideally, the user will advance the workflow before the three days are up, if it's still the biddate stage then it will email saying "Update the opportuniry!"
oppo_biddate 's where it compares today (hopefully minus Saturday and Sunday with the biddate to return true
Any ideas?