Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
300 views
in Technique[技术] by (71.8m points)

java - List deleted channels using MS Graph

I am trying to create a channel through MS Graph. Although if there was a deleted channel with this name i am getting this error:

Error message: Channel name already existed, please use other name.

As far as i know every deleted object is remaining for some days as deleted object in order to be able to recover it. Given that i need to list every deleted channel in order to avoid the errors created from MS Graph and return my own log message. Is there any way to list those channel and get their name through MS Graph?

graphClient.directory().deletedItems().buildRequest().get(); command did not help a lot as i was able to get the id of the deleted items and their oDataType but not their name.

question from:https://stackoverflow.com/questions/65936957/list-deleted-channels-using-ms-graph

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

According to the issue. There is no way to get list of deleted channels once it is deleted.

I think that deleted channels stay in soft delete state for 24 hours. Maybe you can create channel with same name after 24 hours.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...