EvotecIT / PSTeams

PSTeams is a PowerShell Module working on Windows / Linux and Mac. It allows sending notifications to Microsoft Teams via WebHook Notifications. It's pretty flexible and provides a bunch of options. Initially, it only supported one sort of Team Cards but since version 2.X.X it supports Adaptive Cards, Hero Cards, List Cards, and Thumbnail Cards. All those new cards have their own cmdlets and the old version of creating Teams Cards stays as-is for compatibility reasons.
MIT License
409 stars 41 forks source link

-ActivityImage #58

Open dirtydevver opened 4 months ago

dirtydevver commented 4 months ago

just noticed that something i had previously setup has stopped working where we had them built in images.

is this a change or a bug?

PrzemyslawKlys commented 4 months ago

I dont know. I asked my magic ball based on descripton and it couldnt tell 😂 If you provide more information we may figure it out

dirtydevver commented 4 months ago

the code below used to contain a Plus symbol blue icon image

    $TeamsID = 'YourCodeGoesHere'
    $Button1 = New-TeamsButton -Name 'Visit English Evotec Website' -Link "https://evotec.xyz"
    $Fact1 = New-TeamsFact -Name 'PS Version' -Value "**$($PSVersionTable.PSVersion)**"
    $Fact2 = New-TeamsFact -Name 'PS Edition' -Value "**$($PSVersionTable.PSEdition)**"
    $Fact3 = New-TeamsFact -Name 'OS' -Value "**$($PSVersionTable.OS)**"
    $CurrentDate = Get-Date
    $Section = New-TeamsSection `
        -ActivityTitle "**PSTeams**" `
        -ActivitySubtitle "@PSTeams - $CurrentDate" `
        -ActivityImage Add `
        -ActivityText "This message proves PSTeams Pester test passed properly." `
        -Buttons $Button1 `
        -ActivityDetails $Fact1, $Fact2, $Fact3
    Send-TeamsMessage `
        -URI $TeamsID `
        -MessageTitle 'PSTeams - Pester Test' `
        -MessageText "This text will show up" `
        -Color DodgerBlue `
        -Sections $Section`
PrzemyslawKlys commented 4 months ago

and now does what? please make some effort on proper reporting of errors

dirtydevver commented 4 months ago

it used to display an image / icon with a blue + now it doesnt, ive attached some examples below

before Screenshot 2024-04-23 120349 after Screenshot 2024-04-23 120409