I was able to send the Webhook by doing this -
I tried using PowerShell and created a variable like below -> Given value inside double quote and value as 'Testing'
PS C:\Windows\System32> $channel = "'Giving the variable as string and adding single quote inside it'"
Then I created the payload to send this way, please have a look I changed all double quotes to single and given double quotes outside of it.
PS C:\Windows\System32> $payload = "{'type':'MessageCard','themeColor':'0072C6', 'title':'Test','summary':'summary','text': 'We are testing payload', 'sections': [{ 'facts' : [{ 'name': 'Channel' , 'value' : $channel }]}]}"
Lastly send the the webhook as follow
PS C:\Windows\System32> curl.exe -H 'Content-Type: application/json' -d $payload $webhookURL
It worked fine without any issue. Let us know by trying above code if it's working for you as well.
Thanks,
Hunaid L. Hanfee
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.