1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| $myAccount = "oliver@anadea.com"
$userCredential = Get-Credential -UserName $myAccount -Message "Type the password." Connect-MicrosoftTeams -Credential $userCredential
Write-Host "+ Get-exTasks with Filter for <--Your channel-->" $myDomain = "teams.appvity.com" $myTeam = "19:711c68b56d894b2697368214024dc89f@thread.skype" $myChannel = "19:08c4a90b598840f0ad2055a9fe819aec@thread.skype" $myTasks = Get-Tasks -Domain $myDomain -TeamId $myTeam -ChannelId $myChannel -Filter "status eq 'In Progress'" ForEach ($myTask in $myTasks) { write-host " name: " $myTask.name write-host " status: " $myTask.status write-host " priority: " $myTask.priority write-host " assignedTo: " $($myTask.assignedTo | foreach {$_.username+"," }) write-host "....." } Write-Host "+ Total tasks count:" $myTasks.Count
|
Comment