Action
Get App Link
Search selected app name through Workflow and Replace the text with markdown link.
Steps
-
script
// See online documentation for examples var selected = editor.getSelectedText(); const baseURL = "workflow://x-callback-url/run-workflow"; var workflow = "Get App Link"; var cb = CallbackURL.create(); cb.baseURL = baseURL; cb.addParameter("name", workflow); cb.addParameter("input", "text"); cb.addParameter("text", selected); var success = cb.open(); if (success) { response = cb.callbackResponse; var url = response["result"]; editor.setSelectedText(url); console.log("Text Replaced"); } else { console.log(cb.status); if (cb.status == "cancel") { context.cancel(); } else { context.fail(); } }
Options
-
After Success Default Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.