Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
      • Book your Agile Fundamentals training
      • Book your Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Automation Script to open a URL on browser

410 views10th July 2026
3
Ramesh Rajasekaran [DevOps Advocate]978 7th July 2026 0 Comments

Hello Team,

I have created an automation script, which does some background process and creates a reference id and the concatenate it at the end of the URL. I would need it to be auto opened on the users machine who has triggered this automation script via Dataminer cube.

Lets take an example I want to redirect the user to https://docs.dataminer.services/index.html on their browser after completion of the automation script.

As of now I am using a pop up to show this URL to the users. And they manually copy paste it on browser. Also not sure if the URL can be made clickable on popup.

Could you please help me to find how to achieve redirection and if it's not possible what is other alternative to make it user friendly

Thomas Ghysbrecht [SLC] [DevOps Enabler] Answered question 10th July 2026

4 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Thomas Ghysbrecht [SLC] [DevOps Enabler]5.79K Posted 10th July 2026 2 Comments

Hi Ramesh, make sure that the 'NoConfirmation' option is set in the Hyperlink.xml for that hyperlink, otherwise the pop-up will be shown as you mentioned.
When I trigger such an interactive script from a hyperlink in the alarm console with that option set, it should open the link immediately. This is how my hyperlink value is structured 'MyAutomationScript||AlarmId=[ALARMID]||Tooltip|NoConfirmation,CloseWhenFinished'.

Thomas Ghysbrecht [SLC] [DevOps Enabler] Posted new comment 13th July 2026
Ramesh Rajasekaran [DevOps Advocate] commented 13th July 2026

Hello Thomas,
On hyperlink file we have already configured the below code

<HyperLink id="71" version="2" name="Test" menu="root" type="script" alarmColumn="false" alarmAction="true">
CreateRecord||View=[VID];ElementName=[ENAME];AlarmSeverity=[SEVERITY];AlarmParameter=[PNAME];AlarmValue=[VALUE];AlarmRootTime=[ROOTTIME];||Tooltip|NoConfirmation,CloseWhenFinished
</HyperLink>

On automation script, I have added the below code
UIBuilder uib = new UIBuilder();
UIBlockDefinition uibd = new UIBlockDefinition();
uibd.Type = UIBlockType.Executable;
uibd.Extra = apiResponse;
uib.AppendBlock(uibd);
engine.ShowUI(uib);

If I don't call engine.ShowUI(uib);, the background popup shown in the screenshot does not appear. However, once engine.ShowUI(uib); is executed, Redirection is working but DataMiner displays the Automation execution popup after the code completes successfully. Is there a supported way to suppress or disable this popup while still using UIBuilder?

Thomas Ghysbrecht [SLC] [DevOps Enabler] commented 13th July 2026

Thanks for sharing the hyperlink and code. I redid my testing with exactly what you provided, and this seems to be working on my end. Could you confirm the DataMiner version you are using? (My testing was done on the latest version)

The only way I can reproduce the pop-up, is to remove the 'NoConfirmation' option. But that pop-up is then shown before the script actually runs. If I understood your experience correctly, it only shows after the script was executed. Could you scroll down the list of parameters in that pop-up and check what is says at the bottom? I would assume that it says 'Completed: SUCCEEDED' with an 'Execute now' button next to it.

This behavior you are seeing does not seem correct. My current assumption is that this may be behaving faulty on an older version that you may be running. (to be confirmed)

1
Ramesh Rajasekaran [DevOps Advocate]978 Posted 9th July 2026 1 Comment

Yes after clicking the checkbox it does work and this pop up doesn't appear. But it also open's the automation script execution popup screen behind it. I don't want the screen behind it to be visible to the user. We will be triggering this script by right clicking an alarm on alarm console and selecting a custom hyperlink tab to trigger this script. So, how to hide the screen that is behind. 

Thomas Ghysbrecht [SLC] [DevOps Enabler] Posted new comment 10th July 2026
Thomas Ghysbrecht [SLC] [DevOps Enabler] commented 10th July 2026

Thanks for the screenshot, I have added another response with a possible fix and a GIF.

1
Peter Geivaerts [DevOps Advocate]340 Posted 9th July 2026 0 Comments

Since an automation script actually runs server-side I don't think there is any other way in achieving this than using ShowUI.

Peter Geivaerts [DevOps Advocate] Answered question 9th July 2026
1
Peter Geivaerts [DevOps Advocate]340 Posted 8th July 2026 6 Comments

Does this work for you?

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Skyline.DataMiner.Automation;

/// <summary>
/// DataMiner Script Class.
/// </summary>
class Script
{
/// <summary>
/// The Script entry point.
/// </summary>
/// <param name="engine">Link with SLAutomation process.</param>
public void Run(Engine engine)
{
UIBuilder uib = new UIBuilder();
UIBlockDefinition uibd = new UIBlockDefinition();
uibd.Type = UIBlockType.Executable;
uibd.Extra = @"http://www.google.be";
uib.AppendBlock(uibd);
var result = engine.ShowUI(uib);
}
}

Ramesh Rajasekaran [DevOps Advocate] Posted new comment 9th July 2026
Ramesh Rajasekaran [DevOps Advocate] commented 8th July 2026

Yes Now I am able to redirect to the browser. But Since we are using ShowUI I got the executable screen where we enter input data on the background. I would like to hide it. I just want to show the URL UI which redirects to browser

Peter Geivaerts [DevOps Advocate] commented 8th July 2026

and if you show it as a button on your UI and start this script after pressing the button?

Ramesh Rajasekaran [DevOps Advocate] commented 8th July 2026

On Alarm console we have added a hyperlink which triggers the automation script with respective inputs.

Ramesh Rajasekaran [DevOps Advocate] commented 9th July 2026

The Automation Script is launched from an Alarm Console hyperlink. The script creates a Spark ticket and uses UIBlockType.Executable to open the returned URL. Is there a supported way to launch the URL on the Cube client without displaying the Automation execution dialog (engine.ShowUI) or using an alternative client-side API?

Thomas Ghysbrecht [SLC] [DevOps Enabler] commented 9th July 2026

Hi Ramesh, the example of Peter should work. There may be a small window that appears briefly, but this should disappear once the instruction to open the web page has been approved by the user & handled by the browser. There will be a confirmation screen in Cube for security reasons, but it is possible to check a box so it is not shown anymore in the future for that user. After approving & checking that box, the subsequent triggers of the script should Could you elaborate on what would prevent you from using this approach?

Show 1 more comments
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2026 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin