Home

potentialAction failing to display for URI in IncomingWebhook Connector

%3CLINGO-SUB%20id%3D%22lingo-sub-763880%22%20slang%3D%22en-US%22%3EpotentialAction%20failing%20to%20display%20for%20URI%20in%20IncomingWebhook%20Connector%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-763880%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20creating%20posts%20to%20a%20Teams%20channel%20via%20the%20Incoming%20Webhook%20Connector.%3CBR%20%2F%3E%3CBR%20%2F%3EThey%20create%20fine%20and%20all%20seems%20good%20except%20that%20I%20want%20a%20button%20%22Gateway%22%20with%20a%20URI%20of%20%22%22jamfselfservice%3A%2F%2Fcontent%3Fentity%3Dpolicy%26amp%3Baction%3Dview%26amp%3Bid%3D159%22%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20the%20JSON%20I'm%20using%20%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%22potentialAction%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22targets%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22os%22%3A%20%22default%22%2C%3CBR%20%2F%3E%22uri%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fexample.com%2Fpolicies.html%3Fid%3D136%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fexample.com%2Fpolicies.html%3Fid%3D136%3C%2FA%3E%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%2C%3CBR%20%2F%3E%22%40type%22%3A%20%22OpenUri%22%2C%3CBR%20%2F%3E%22name%22%3A%20%22Policy%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22targets%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22os%22%3A%20%22default%22%2C%3CBR%20%2F%3E%22uri%22%3A%20%22jamfselfservice%3A%2F%2Fcontent%3Fentity%3Dpolicy%26amp%3Baction%3Dview%26amp%3Bid%3D136%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%2C%3CBR%20%2F%3E%22%40type%22%3A%20%22OpenUri%22%2C%3CBR%20%2F%3E%22name%22%3A%20%22Gateway%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20post%20is%20being%20created%20and%20I%20get%20the%20button%20%22Policy%22%20but%20not%20the%20button%20%22Gateway%22.%20If%20I%20change%20the%20URI%20to%20%22%3CA%20href%3D%22https%3A%2F%2Fexample.com%2Ftest%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fexample.com%2Ftest%3C%2FA%3E%22%20in%20the%20second%20button%20then%20it%20appears.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20documentation%20at%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foutlook%2Factionable-messages%2Fmessage-card-reference%23actions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EActions%3C%2FA%3E%26nbsp%3Bimplies%20that%20I%20can%20have%20a%20URI%20that%20isn't%20HTTP.%20Any%20suggestions%20for%20a%20fix%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%2F%2F%20Tony%20Williams%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-763880%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Tony_Williams
Occasional Visitor

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

 

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
50 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
32 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
15 Replies
Dev channel update to 80.0.355.1 is live
josh_bodner in Discussions on
67 Replies