VersionOneAPIClient で、私がアセット タイプとして指定したものを認識しないという問題が発生しています。属性の定義がおそらく意味をなさないことは理解していますが、ほとんどすべてを試してきました。私の最終的な目標は、TeamRooms にクエリを実行し、チーム ルーム内のすべてのチームからチーム名を取得することです。
資産タイプに関するドキュメントと、これが機能するはずのクエリ方法から理解していますが、それは私たち全員が言っていることです。
私が使用している: C# ASP.NET、VersionOneAPIClient 15.0.0.0
私が試した文字列:
- チームルーム
- 仕事
- 範囲
計画
public bool APIgetTeams() { IAssetType teamroomType = services.Meta.GetAssetType("Task"); Query query = new Query(teamroomType); IAttributeDefinition teamAttribute = teamroomType.GetAttributeDefinition("Children:Room.Team.Name"); query.Selection.Add(teamAttribute); IAttributeDefinition scheduleAttribute = teamroomType.GetAttributeDefinition("Children:Scope.Room.Schedule.Name"); query.Selection.Add(scheduleAttribute); query.Find = new QueryFind(scheduleName, new AttributeSelection(scheduleAttribute)); query.Paging.PageSize = 1; query.Paging.PageSize = 0; teamRoomAsset = (Asset)services.Retrieve(query).Assets.ToArray().GetValue(0); return true; }
サービスとコネクタの私の定義:
public static V1Connector connector = V1Connector
.WithInstanceUrl("http://versionone.cscinfo.com/VersionOneProd/")
.WithUserAgentHeader("New Dashboard?", "1.0")
.WithWindowsIntegrated()
.Build();
public IServices services = new Services(connector);
そして、これらは私のエラー/スタックトレースです:
エラーはおそらく単純で、私の顔には正しいのですが、理解できません。