如何通过脚本编辑SharePoint时间表? [英] How can I edit my SharePoint time sheet through a script?
问题描述
好的,所以我迷失在这里。我已经在谷歌上搜索了一种方法,并没有找到任何结果。但是,我完全不认为这是不可能的。
因此,在工作中我们使用SharePoint作为员工门户。我们使用Project Professional,以便员工可以每天(或月份)在时间表上记录他们的工作时间,就像有些人在我办公室那样。最近,我一直想进入像Go,Python和JavaScript(主要是Node.js)这样的语言
,所以我认为使用其中一种语言进行自动化是一项完美的任务。
我发现有一堆与SharePoint和Project Professional相关的API,我发现了一些关于Project Server的东西。这就是说我不知道我在这里寻找什么,我想我会找到一个带有
的REST API,我可以访问一些路由来编辑我的时间表。我真的找不到多少。
此外,我不是我公司的管理员,我可以访问我的时间表,但就是这样,我不确定是否会引起一个问题。我已经通过这个网址访问了一句:&NBSP;的 HTTP://<
公司网址> /< PWA名称> / _ api,但我只是得到一个HTTP 200,它只是承认我的用户和密码是正确的。
如果有人能提供帮助我会很感激,我真的很期待创建这个计划,我非常渴望了解更多。  ;
有JavaScript库和项目服务器客户端对象模型(CSOM)跨度> <跨度>&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;& NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;
https://msdn.microsoft.com/en-us/library/office/jj712612.aspx
如果您有与自定义相关的问题,可以在项目自定义和编程论坛中发帖,我们建议适当发布的原因是您将获得最合格的受访者群体,其他合作伙伴
定期阅读论坛可以分享他们的知识。
的感谢您的理解。
< span style ="font-size:10.0pt;行高:105%; FONT-FAMILY:"宋体",无衬线;颜色:#2F5597">最好的问候,
利跨度>
Ok, so I'm lost here. I've googled everywhere in search of a way to do this and have found nothing. However, I quite simply do not think that this is impossible to do.
So here is the thing, at work we use SharePoint as our employee portal. We use Project Professional so that employees can record their hours on a time sheet every day (or month, like some people do at my office). Lately, I have been wanting to get into languages like Go, Python and JavaScript (mainly Node.js) so I thought this would be a perfect task to automate with one of those languages.
I found out there are a bunch of APIs out there related to SharePoint and Project Professional, I found out something about Project Server or something like that. That said I don't know what I'm looking for here, I thought I would just find a REST API with some routes that I could access to edit my times sheet. I didn't really find much.
Additionally, I'm not an admin at my company, I can access my time sheet but that's it, I'm not sure if that will cause an issue. I already accessed something through this URL: http://< Company URL >/< PWA name >/_api, but I just I get a HTTP 200, which just acknowledges that my user and password are correct.
If anyone can help I'd be grateful, I'm really looking forward to creating this program, I'm very eager to learn more.
Hi,
There are JavaScript library and Client-side object model (CSOM) for Project server.
https://msdn.microsoft.com/en-us/library/office/jj712612.aspx
If you have issues related to customization, you could post in Project Customization and Programming forum, The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge.
Thanks for your understanding.
Best Regards,
Lee
这篇关于如何通过脚本编辑SharePoint时间表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!