ProjectSiteUrl
Project Online で公開されたプロジェクトからプロパティを取得するために、次のコードを作成しました。
using (ProjectContext projContext = new ProjectContext(pwaUrl))
{
using (SecureString securePassword = new SecureString())
{
Helper.GetSecurePassword(projContext, securePassword, emailID, password);
for (int i = 0; i < listGuid.Count; i++)
{
#region Load Project
string spoGuid = listGuid[i].ProjectGuid;
if (!string.IsNullOrEmpty(spoGuid))
{
Guid id = Guid.Parse(spoGuid);
var projBlk = projContext.LoadQuery(
projContext.Projects
.Where(p =>
p.Id == id
)
.Include(p => p.Id,
p => p.Tasks,
p => p.TaskLinks,
p => p.ScheduledFromStart,
p => p.ProjectSiteUrl,
p => p.Name,
p => p.IncludeCustomFields,
p => p.IncludeCustomFields.CustomFields,
P => P.IncludeCustomFields.CustomFields.IncludeWithDefaultProperties(
lu => lu.LookupTable,
lu => lu.LookupEntries,
lu => lu.LookupEntries.IncludeWithDefaultProperties(
entry => entry.FullValue,
entry => entry.InternalName)
)
)
);
projContext.ExecuteQuery();
poFieldValues.Add(LoadProjectsinPO(projBlk, projContext));
}
#endregion
//if (i > 5)
//{
// break;
//}
if (i % 5 == 0)
{
Thread.Sleep(sleepDelay);
}
}
}
}
ProjectSiteUrl プロパティにアクセスしようとすると、null
. 以前は正しい ProjectSiteUrl を取得していましたが、ここ数週間は null になっています。コードに変更はありませんでした。
Project Online でこのプロパティにアクセスする方法に何か変更はありましたか?