我正在这篇文章中使用核心服务创建一个新项目。但是,新创建的项目的 URI 是 tcm:0-0-0 而不是实际的 TCM URI。Title 属性是正确的(而不是新组件),但 WebDav 路径在 .
获取新创建项目的 URI 的最佳方法是什么?
client.Create(newComponent, null);
string newItemUri = newComponent.Id; // returns tcm:0-0-0
string webDavUrl = newComponent.LocationInfo.WebDavUrl; // returns New%20Component
string title = newComponent.Title; // correct