potentialAction failing to display for URI in IncomingWebhook Connector

Copper Contributor

I am creating posts to a Teams channel via the Incoming Webhook Connector.

They create fine and all seems good except that I want a button "Gateway" with a URI of ""jamfselfservice://content?entity=policy&action=view&id=159" 

 

Here's the JSON I'm using :

"potentialAction": [
{
"targets": [
{
"os": "default",
"uri": "https://example.com/policies.html?id=136"
}
],
"@type": "OpenUri",
"name": "Policy"
},
{
"targets": [
{
"os": "default",
"uri": "jamfselfservice://content?entity=policy&action=view&id=136"
}
],
"@type": "OpenUri",
"name": "Gateway"
}
],

The post is being created and I get the button "Policy" but not the button "Gateway". If I change the URI to "https://example.com/test" in the second button then it appears.

The documentation at Actions implies that I can have a URI that isn't HTTP. Any suggestions for a fix?

 

// Tony Williams

 

 

0 Replies