-
Notifications
You must be signed in to change notification settings - Fork 215
Closed
Description
When I used only PnP.powershell, I could get a token and use it to do pure Graph REST call
$token = Get-PnPGraphAccessToken
$header = @{ Authorization = "Bearer $($token)" }
$Uri = "https://graph.microsoft.com/v1.0/teams/$($team.GroupId)/channels/$($channel.Id)/messages/$($message.Id)/replies"
$response = Invoke-RestMethod -Uri $Uri –Headers $header –Method Get –ContentType "application/json"
I added Microsoft.Graph.Mail to the script to send email (works fine) but now I get error:
Could not load file or assembly 'System.IdentityModel.Tokens.Jwt, Version=6.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find
| or load a specific file. (0x80131621)
On the line $token = Get-PnPGraphAccessToken
So I thought I replace the pure Graph REST call with a call using -Module -Name Microsoft.Graph.Teams
I can't find any documentation that will show how to get replies with it.
Can someone please show an example?
Thanks
AB#10530
Metadata
Metadata
Assignees
Labels
No labels