PTO请求的SharePoint工作流程 [英] SharePoint workflow for PTO Request

查看:88
本文介绍了PTO请求的SharePoint工作流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


 我已经设置了一个PTO请求列表,用户填写该列表以供管理员批准。他们的经理被分配了批准或拒绝的任务。如果它被批准,该项目将被添加到另一个名为PTO跟踪的列表中。



我遇到的问题是我要追踪半天所以我为此设置了以下字段。


PTO请求类型

多天

单日¥b $ b如果他们选择单日我只有一个From Date字段弹出来
然后他们可以选择半天或全天。



我希望工作流程将日期添加到日期字段,但我不确定实现此目的的最佳方法。以下是我设置的工作流程。



这里是工作流程截图的链接 - https://imgur.com/a/ 42sqop3





解决方案

嗨Derekrjr,


当你选择一天中的半天时,你是如何存储半天或全天形成?您是否使用列来存储它们?


您是如何设计表单的?


您在哪里使用From日期和To date?


无论如何,要设置到日期,您可以使用IF条件来判断PTO请求类型,然后根据不同的选择来设置到日期。


假设您将全天或半天存储为名为FullDay的复选框列,选中时,它已满,否则为半天。供您参考的逻辑:


如果当前项目:  PTO请求类型
等于多天


  添加 0 个月,
[天]
  days, 0 小时, 0 分钟到
当前项目:从(输出到
变量:日期


否则


 如果当前项目:FullDay等于是


     添加  0  月,  1   days,  0  小时,  0  分钟到  当前项目:从(输出
至  变量:日期


 否则


     添加  0  月,  0   days,  12  小时,  0  分钟到  当前项目:从(输出
到  变量:日期


设置当前项目:
变量:date


谢谢,


Wendy


Hello,

 I have setup a PTO Request list that a user fills out for approval from a manager. they manager gets assigned the task to approve or reject. If it is approved it the item gets added to another list called PTO Tracking.

The issue i am having is i want to track half days so i have setup the following fields for this.

PTO Request Type
Multiple days
Single Day
if they select single day i only have a From Date field pop up
Then they can select half day or full day.

I would like the workflow to add the from date to the to date field, but i am not sure the best way to accomplish this. below is the workflow i setup.

here is a link to a screenshot for the workflow - https://imgur.com/a/42sqop3

解决方案

Hi Derekrjr,

How did you store the half fay or full day when you select single day in your form? Are you using a column to store them?

How did you design your form?

Where did you use the From date and To date?

Anyway, to set To date, you can use IF condition to judge the PTO Request Type, then based on different selection to set the To date.

Assuming you store Full day or half day as a checkbox column called FullDay, when checked, it is full, otherwise, it is half day. A logic for your reference:

If Current Item: PTO Request Type equals Multiple days

  Add 0 months, [days] days, 0 hours, 0 minutes to Current Item: From(Output to Variable:date)

Else

  If Current Item:FullDay equals Yes

     Add 0 months, 1 days, 0 hours, 0 minutes to Current Item: From(Output to Variable:date)

  Else

     Add 0 months, 0 days, 12 hours, 0 minutes to Current Item: From(Output to Variable:date)

Set Current Item: To to Variable:date

Thanks,

Wendy


这篇关于PTO请求的SharePoint工作流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆