Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-ActivityImage #58

Open
dirtydevver opened this issue Apr 23, 2024 · 4 comments
Open

-ActivityImage #58

dirtydevver opened this issue Apr 23, 2024 · 4 comments

Comments

@dirtydevver
Copy link

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
Copy link
Member

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
Copy link
Author

dirtydevver commented Apr 23, 2024

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
Copy link
Member

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

@dirtydevver
Copy link
Author

dirtydevver commented Apr 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants