首页 > 解决方案 > block the dates in the calendar in sharepoint, once the leave is approved

问题描述

I have created a leave planner in Sharepoint and have automated the leave approval and balance update using SharePoint designer.

Now there is a requirement to built a calendar in sharepoint that gets updated automatically for every employee, when their leave is approved or cancelled after the approval. Basically, I need to set up something like calendar overlay, but with a feature that the calendar automatically blocks the dates for which the employee has applied leave and can be seen to the manager in the single calendar.

Is there a way we can do this, because I am unable to figure out any flow to automate this using Sharepoint designer?

标签: sharepointcalendar

解决方案


您需要做的就是“添加应用日历”并设置操作以在批准休假后在日历中创建事件。1. 将此操作添加到您提到批准休假后要执行的其他操作的流程中:

  • 在“日历”中创建项目,输出到变量“创建”
  • 将当前项目的“开始时间”设置为“开始日期” - 将当前项目的“结束时间”设置为“截止日期”

    1. 这将阻止您的日历日期,并将显示在共享点日历​​中

    2. 您还可以根据您的选择设置显示消息,例如“XYZ请假”


推荐阅读