Good afternoon,
I have a teams webhook setup and I can send text via a button click. I recently created a printtoimage line of code to take a screenshot of the screen and would like to setup the image to be sent through my webhook to Teams. Is this possible and if so how would I go about doing this? Below is the code on my button so far, just not sure how to change it to send the image instead of saving it. Any help would be appreciated.
system.print.printToImage(event.source.parent, "C:\\temp\\Screen.jpg")
message = {'C:\\temp\\Screen.jpg'}
url = "Webhook"
system.net.httpPost(url, "Application/Json", message, 10000, 60000)