Processing a URL scope in Card Button with Action.OpenUrl() function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2022 10:21 PM
Query from Vizerto Dev(@mailinator.com) in @webex4devs space
Hi, I want to use a button in card which when clicked, it should fallback at an endpoint where I will process the url and then a browser will open a url as in open.url action. Right now this action is using a static url, is there a way for me to process the url and then open in browser ?
- Labels:
-
Webex API
-
Webex Bots
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2022 10:29 PM
Hi Vizerto,
AFAIK, it's not possible to process a URL from Webex Card when you hit it via button to open the same in a browser.
I'm assuming, your actionable url is stored like this inside the card item -
actions: [
{
type: "Action.OpenUrl",
title: "Search",
url: "https://www.google.com"
}
]
Now could you provide us some more details how you want to play around with it.
As much I understand, possibly once you hit on the URL button, you're expecting it to provide you a scope to update the URL and then process it in a Browser.
If that's the expectation, then it'd not be possible here.
Please let us know if your requirement is little different and based on that, we can assist you further.
Regards,
Sandip
