Comments
-
100%
-
Our CIO really really wants this.
-
Yes that is correct. Thanks for noticing that.
-
Update: As noted Powershell 7 is required for -form support. I was able to get things to work. Posting here my notes to help any future people searching for clues. Adding to the ticket. $file = @{ "file[attachable_type]" = "Incident" "file[attachable_id]" = "123456" "file[attachment]" = (get-item -path "C:\temp\Test.txt")…
-
Thanks Mitch, I am able to do everything I want with the API except posting an attachment. I looked at your comments and google hunted some other examples of Invoke-RestMethod posting. Unfortunately none of them seem to work for SWSD API. So I'm clearly missing a key piece of the puzzle. I did ask SWSD support for help but…