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
    • Empower Replay: Limited Edition
    • 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
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • 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)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
  • Swag Shop
  • Downloads
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

BroadCastPopupRequestMessage: how to use, how to implement?

Solved87 views1 day agoclient cube client Message notifications pop-up messages
5
Nils Hoven [DevOps Advocate]1.23K 4 days ago 0 Comments

Hi Dojo,

is there any easily available way to use this functionality? The description in the release notes sounds very promising, so we'd be very happy to be able to send a notification as a pop up directly to all connected users.

Any ideas?

Thanks a lot! 🙂

Nils Hoven [DevOps Advocate] Selected answer as best 1 day ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Seppe Dejonckheere [SLC] [DevOps Advocate]2.32K Posted 3 days ago 1 Comment

Hi Nils,

It should be possible to get a list of all connected users as following:

var users = connection.HandleResponseMessage(new GetInfoMessage(InfoType.ClientList))
.Cast<LoginInfoResponseMessage>()
.Where(c => (c.ConnectionAttributes & ConnectionAttributes.Cube) == ConnectionAttributes.Cube)
.Select(c => c.Name)
.ToList();

Which you can then use to send out a popup message to these users like this:

BroadcastPopupRequestMessage req = new BroadcastPopupRequestMessage
{
PopupInfo = new Skyline.DataMiner.Net.Broadcast.PopupInfo
{
Source = connectionId,
Title = "Your Title",
Message = "Your Message",
UserNames = users,
Expiration = new DateTime(DateTime.Now.Ticks + tickOffset),
}
};

Kind regards,

Nils Hoven [DevOps Advocate] Selected answer as best 1 day ago
Christian Gutekunst commented 1 day ago

Hi Seppe,

Thanks for your reply! That was a great hint — we got it working with the code below.

using System;
using System.Collections.Generic;
using System.Linq;
using Skyline.DataMiner.Automation;
using Skyline.DataMiner.Net;
using Skyline.DataMiner.Net.Messages;
using Skyline.DataMiner.Net.Messages.SLDataGateway;

public class Script
{
public void Run(Engine engine)
{
// Konfiguration
string title = "Systemmeldung";
string message = "Wartung beginnt in 1 Minuten.";
TimeSpan duration = TimeSpan.FromMinutes(1);

try
{
// 1. Cube-User abrufen über SLNet
var response = engine.SendSLNetMessage(new GetInfoMessage(InfoType.ClientList));

var cubeUsers = response
.OfType<LoginInfoResponseMessage>()
.Where(c => (c.ConnectionAttributes & ConnectionAttributes.Cube) == ConnectionAttributes.Cube)
.Select(c => c.Name)
.Distinct()
.ToList();

if (cubeUsers.Count == 0)
{
engine.Log("Keine aktiven Cube-User gefunden.");
return;
}

// 2. Popup vorbereiten
DateTime expiration = DateTime.Now.Add(duration);

var popup = new BroadcastPopupRequestMessage
{
PopupInfo = new Skyline.DataMiner.Net.Broadcast.PopupInfo
{
Source = Guid.NewGuid(),
Title = title,
Message = message,
UserNames = cubeUsers,
Expiration = expiration
}
};

// 3. Nachricht senden
bool sendPopup = true; // Auf true setzen, wenn wirklich senden, ansonsten Logfile

if (sendPopup)
{
engine.SendSLNetMessage(popup);
}
else
{
engine.Log("Popup wurde NICHT gesendet – nur Testausgabe:");
engine.Log("Title: " + popup.PopupInfo.Title);
engine.Log("Message: " + popup.PopupInfo.Message);
engine.Log("Users: " + string.Join(", ", popup.PopupInfo.UserNames));
engine.Log("Expiration: " + popup.PopupInfo.Expiration);
engine.Log("Source GUID: " + popup.PopupInfo.Source);
}

engine.Log($"Popup an {cubeUsers.Count} Benutzer gesendet.");
}
catch (Exception ex)
{
engine.Log("Fehler: " + ex.Message);
}
}
}

Best regards! (and sorry about the German comments in the code)

You are viewing 1 out of 1 answers, click here to view all answers.
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

© 2025 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