Hi All,<o:p></o:p>
I am experiencing a problem with the CSOM/Javascript API in Project Online.<o:p></o:p>
If I run the following code I get different results depending on the Project Online PWA instance i use.
var projectContext = PS.ProjectContext.get_current(); var projects = projectContext.get_projects(); projectContext.load(projects); projectContext.executeQueryAsync(function () { var numOfProj = 0; var pEnum = projects.getEnumerator(); while (pEnum.moveNext()) { var psProject = pEnum.get_current(); numOfProj++; } alert('Num of Projects: ' + numOfProj); }, function (sender, args) { alert('Failed'); });
If I run it on a US-PWA I get the number of projects in the PWA.<o:p></o:p>
If I run it on an old DK-PWA I get the number of projects in the PWA.<o:p></o:p>
If I create a new DK-PWA on the same Tenant as the US-PWA I get 0 projects returned. No matter what I do (getByGuid, Include(), etc.) I always get 0 projects.<o:p></o:p>
I suppose this should be reported to the Project Team. However, I wanted to hear if others are experiencing the same problems? Perhaps this is a DK problem or maybe it is a Language Pack problem.<o:p></o:p>