Send Reminder if user is not replying from last 7 business days.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 02:26 AM
Hello Community,
There is requirement that if user is not replying from last 7 business days in Sc task then we have to send reminder to them.
Will anyone please guide , how I should proceed .
I had configured this for 7 days but 7 business days is new to me.
Please guide and thanks in advance !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 01:02 AM
A business day refers to the standard working days of the week, which typically exclude weekends and public holidays. In many parts of the world, business days are Monday through Friday. These are the days when businesses, banks, government offices, and other institutions usually operate and conduct their regular activities.
Key Points:
Standard Business Days:
- Most commonly, business days are Monday through Friday.
- Exclude weekends (Saturday and Sunday) and public holidays.
Regional Variations:
- The definition of business days can vary depending on the country or region.
- Some countries or industries may have different workweek schedules. For example, in some Middle Eastern countries, the workweek might be Sunday through Thursday.
Use in Business and Legal Contexts:
- Business days are often used in contracts, delivery schedules, payment terms, and other business agreements.
- For example, a delivery service might promise to deliver a package within "5 business days," which means the count would not include weekends or holidays.
Impact on Transactions and Operations:
- Understanding business days is important for planning and managing timelines.
- Financial transactions, customer support services, and other business operations typically follow the business day calendar.
In summary, a business day is a regular working day typically excluding weekends and holidays, and it's important to consider the regional context when determining what constitutes a business day.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 05:43 AM
Hi @Drishti ,
You can calculate business days based on schedule(cmn_schedule) define in instance.
attaching screenshots for reference.
Further you may write script as per requirement.
//code for calculated date
var cal = new GlideSchedule('090eecae0a0a0b260077e1dfa71da828');
days = 7;
var currentDateTime = new GlideDateTime();
currentDateTime.setDisplayValue(gs.nowDateTime());
var dur = new GlideDuration();
dur.setValue(60*60*9*1000*days); //here if your day 8-5 then write 9 and if 24*7 then instead of 9 write 24.
var newDateTime = cal.add(currentDateTime, dur, '');
gs.print(newDateTime);
if(calcuated_date == current date)
{
trigger notification/reminder..
}
Please mark my response as correct and helpful if it helped solved your question.
Thanks,
Rohit Suryawanshi