You need to sign in to do that
Don't have an account?
dellseys
Check if next day is a holiday in salesforce
Hi,
I am developing a trigger to check if nexday =today()+1 is a holiday and if it is, it should take the next business day that is not a holiday. How can i do this in salesforce.
thanks
steve
I am developing a trigger to check if nexday =today()+1 is a holiday and if it is, it should take the next business day that is not a holiday. How can i do this in salesforce.
thanks
steve
Your Name | Setup | Company Profile | Holidays.
Click Edit to edit an existing holiday.
Click Del to delete an existing holiday.
You can only delete a holiday that is not associated with any business hours.
Click Clone next to an elapsed holiday to clone it.
The Elapsed Holidays related list displays holidays that have occurred in the past. You can only clone elapsed holidays.
Second, You can able to query holidays and compare in the code
Find below an updated version of your code. All I tried to do is to check if today()+1 is a holiday or weekend. does this logic work. The end goal is if i check and today is a holiday or a weekend, i will get the next business day.
With this code i have an error: Method does not exist or incorrect signature: void checkifItisWorkingDay
Thank you.
I have made some modification to your code. I wanted to know if today is a holiday or weekend. the end goal is if I am able to get this then I used the next business day to store my information. but currently this code is running into error.
error:
Method does not exist or incorrect signature: void checkifItisWorkingDay()