New script sample to export all the channels from a team#2793
Closed
sudharsank wants to merge 3 commits intopnp:mainfrom
Closed
New script sample to export all the channels from a team#2793sudharsank wants to merge 3 commits intopnp:mainfrom
sudharsank wants to merge 3 commits intopnp:mainfrom
Conversation
Contributor
sudharsank
commented
Oct 27, 2021
| Docs | |
|---|---|
| Author | Sudharsan Kesavanarayanan |
| Description | Export all the channels information in a CSV file for the team's team |
| Keywords | Microsoft Teams, Governance |
…Name of the team.
…Name of the team.
…Name of the team.
Member
|
Thank you! We'll review it shortly 👍 |
waldekmastykarz
approved these changes
Nov 2, 2021
Member
waldekmastykarz
left a comment
There was a problem hiding this comment.
Nicely done with a few minor changes I've done when merging the PR 👍
| - 'Deploy a Microsoft Teams personal app and add it to users': 'sample-scripts/teams/install-personal-app.md' | ||
| - 'Deploy Microsoft Teams app from Azure DevOps': 'sample-scripts/teams/deploy-teams-app.md' | ||
| - 'Export conversations from Microsoft Teams Channels': 'sample-scripts/teams/export-teams-conversations.md' | ||
| - 'Export all channels from Microsoft Teams Team': 'sample-scripts/teams/export-all-channels-teams.md' |
Member
There was a problem hiding this comment.
When adding items to the Table of contents, let's sort them alphabetically so that our users can find them more easily.
| $results | Export-Csv -Path "Channels.csv" -NoTypeInformation | ||
| Write-Host "Completed." | ||
| } else { | ||
| Write-Information "No channesl found!" |
| [Parameter(Mandatory = $false)][string] $teamName | ||
| ) { | ||
| if(!$teamID -and !$teamName) { | ||
| Write-Error "Either 'Team ID' or 'Team Name' is required" |
Member
There was a problem hiding this comment.
Let's use the property names (teamID and teamName) to make it clearer which values we expect
Member
|
Merged manually. Thank you! 👏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.