Closed mvit777 closed 2 years ago
Found the problem. It turned out that the thumbnail image is actually a mandatory field but it is named Content. To fix it I had to do something like the following
ScriptBlock scriptBlock = ScriptBlock.Create("{\r\n New-ThumbnailImage -Url 'https://upload.wikimedia.org/wikipedia/en/a/a6/Bender_Rodriguez.png' -AltText \"Bender Rodríguez\"\r\n}");
and then
.AddParameter("Content", scriptBlock)
Hi for ease of use I created a c# wrapper library for sending cards. Following below an example of what I mean:
when calling it from powershell script
I recieve an error about a missing parameter Content which I'm not sure what is referring to as it is not part of the api. Also I'm not using addScript to import psteams into the c# lib but rather import via
Any idea? Thanks again for excellent module