You need to sign in to do that
Don't have an account?

Trigger for dates
Hello,
I would like to create possibly a trigger for dates that selects the real number of days according to availability.
For example if I have an Account that has available days only Monday and Tuesday every week, but selects for example Off Days between 16.05.2016 (Monday) till 22.05.2016 (Sunday), I don't want it to roll-up the days and count 7 days, but use the Availabilty and show me only the real 2 day count for that period.
Is there a way to do this?
Thank you!
I would like to create possibly a trigger for dates that selects the real number of days according to availability.
For example if I have an Account that has available days only Monday and Tuesday every week, but selects for example Off Days between 16.05.2016 (Monday) till 22.05.2016 (Sunday), I don't want it to roll-up the days and count 7 days, but use the Availabilty and show me only the real 2 day count for that period.
Is there a way to do this?
Thank you!
All Answers
If all these fields are blank, then Availability_Days__c field will be 0.
Actually they are text fields, because they have the available hours when fields are not blank. For example: Friday: 08:00-12:30
All the best for you.