如何在sharepoint 2013工作流中获取本地系统日期和时间 [英] How to get local system date and time in sharepoint 2013 workflow

查看:97
本文介绍了如何在sharepoint 2013工作流中获取本地系统日期和时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


这里我的工作流程在服务器上运行,它是一个VM服务器。现在我想用我的本地系统日期和时间运行我的工作流程。例如,如果我的工作流程在美国基准时间的服务器上运行,而我的本地系统时间基于印度时间。现在
我的工作流程应该由我的系统时间而不是服务器时间运行。我怎么能这样做?

Here my workflow is running on server time,It's a VM server. Now I want to run my workflow with my local system date and time. For example if my workflow is running on a server which is in USA base time and my local system time is based on Indian time. Now my workflow should run by my system time not on server time. How can I do it?


提前致谢。

Thanks in advance.

推荐答案

您可以创建一个PowerShell脚本来启动SharePoint工作流程。

https://www.c-sharpcorner.com/blogs/how-to-start-workflow -in-sharepoint-2013-using-powershell

http://www.mysharepointadventures.com/2012/06/ start-a-workflow-using-powershell /

#Site and List


SPAssignment = Start-SPAssignment
SPAssignment = Start-SPAssignment


web = Get-SPWeb" http:// your-site" -AssignmentCollection
web = Get-SPWeb "http://your-site" -AssignmentCollection


这篇关于如何在sharepoint 2013工作流中获取本地系统日期和时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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