[英]Microsoft Teams : Placing Created Team in hidden list once created
I have an app that is used to create various teams in the microsoft teams app via the use of the Microsoft Graph API.我有一个应用程序,用于通过使用 Microsoft Graph API 在 Microsoft 团队应用程序中创建各种团队。 This app creates a group with an associated team and then adds members to that team depending on criteria.
此应用程序创建一个具有关联团队的组,然后根据标准将成员添加到该团队。
However once the team is created, the members of the team see the newly created team in the "Your Teams" list, this list can get long so to make it easier I automatically place the team in the "Hidden Teams" list.但是,一旦创建了团队,团队成员就会在“您的团队”列表中看到新创建的团队,此列表可能会变长,以便更轻松地自动将团队放入“隐藏团队”列表中。
In order to do this I would archive and then unarchive a team, this would automatically place the team in the "Hidden Teams" list for all members.为了做到这一点,我将存档然后取消存档一个团队,这会自动将该团队置于所有成员的“隐藏团队”列表中。
Recently I have run into an issue where archiving the team works, but when trying to unarchive the team, I would get a "object not set to an instance of an object" error returned from the method.最近我遇到了归档团队工作的问题,但是在尝试取消归档团队时,我会从该方法返回“对象未设置为对象的实例”错误。
This behaviour is new and causes my application to break, whereas for the last couple of months the app behaved fine, i was wondering if there is another way to automatically add the created team to the hidden teams list.这种行为是新的,会导致我的应用程序中断,而在过去的几个月里,该应用程序表现良好,我想知道是否有另一种方法可以将创建的团队自动添加到隐藏团队列表中。
Currently there is no Teams / Graph API to set the Visible/Hidden state of a Team in a User's view.目前没有团队/图形 API 来设置用户视图中团队的可见/隐藏状态。
I expect that in your approach users will still get notified of them being added to a team , only then to find that the teams has been archived and or hidden.我希望在您的方法中,用户仍然会收到他们被添加到团队的通知,然后才发现团队已被存档或隐藏。
I suggest that it might be simpler and more understandable for end-users to separate我建议最终用户分开可能更简单,更容易理解
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.