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

Add support for custom activity image file system path #24

Closed R3ality closed 3 years ago

R3ality commented 4 years ago

Add param ActivityImagePath for function New-TeamsSection which accepts file system paths to image files. Will be embedded in the JSON

Usage example:

$Section = New-TeamsSection `
    -ActivityTitle "Title" `
    -ActivitySubtitle "Subtitle" `
    -ActivityImagePath "\\VBOXSVR\share\temp2\25 microsoft teams\Images\success.png" ` # <-- Any valid file system path
    -ActivityText "Text" `
    -ActivityDetails $Fact1, $Fact2, $Fact3

Example outcome: image

R3ality commented 4 years ago

Related to issue https://github.com/EvotecIT/PSTeams/issues/23

PrzemyslawKlys commented 3 years ago

Sorry it took so long. I got preoccupied with something else and forgot.