如何通过CSOM或REST更新Project Online中的主项目? [英] How to update a master project in Project Online via CSOM or REST?

查看:66
本文介绍了如何通过CSOM或REST更新Project Online中的主项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以更新"常规"通过CSOM进行项目,但是Master项目呢?

I can update "regular" projects via the CSOM, but what about Master projects?

1。 ProjectContext.Projects似乎不包含主项目。这似乎也意味着如果ProjectId是非主数据库,则以下代码可以正常工作。如果ProjectId用于主项目,则ExecuteQuery不返回任何内容。

1. ProjectContext.Projects does not seem to include master projects. This also seems to mean that the following code works if ProjectId is a non-master. If ProjectId is for a master project, then ExecuteQuery returns nothing.

 var Projects = projContext.LoadQuery(projContext.Projects.Where(p => p.Id == ProjectId));
projContext.ExecuteQuery();

2。我可以通过REST调用获得主项目。但是,你如何更新它们?文档表明可以通过REST进行CRUD操作,但我找不到任何解释如何实际操作的文档。

2. I can get master projects via a REST call. But then, how do you update them? The documentation suggests that it is possible to do CRUD operations via REST, but I can't find any documentation that explains how to actually do that.

或者,我只是遗漏了什么?对于大多数人来说,根本无法访问Master Projects似乎是一个障碍问题?

Or, I am just missing something? It would seem that not having access at all to Master Projects would be a blocking issue for most?

Mike G。

推荐答案

那么,这是一个已知的错误吗?将来是否会修复此问题,或者为什么检索所有项目的命令实际上不会返回所有项目?
So, is this a known bug? Will this be fixed in the future, or is there a reason why the command to retrieve all projects does not actually return all projects?


这篇关于如何通过CSOM或REST更新Project Online中的主项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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