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

get value parameter from child element in service

265 views19th May 2026
4
Juan Falcon298 6th May 2026 0 Comments

Hello

Is posible in a protocol service get parameters value from the child elements to make some operation?

Thanks

Juan

Vasco Marcelino [SLC] [DevOps Member] Answered question 19th May 2026

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Vasco Marcelino [SLC] [DevOps Member]175 Posted 19th May 2026 2 Comments

Hi Juan,

If I understood your question correctly, it can be done if the child element is known.
The documented approach is to use the DataMinerSystem library to retrieve that element and then retrieve the parameter from it.

For a standalone parameter in a QAction, this can be done, for example, as follows:

IDms dms = protocol.GetDms();
IDmsElement childElement = dms.GetElement(new DmsElementId(346, 530006));
IDmsStandaloneParameter<string> parameter = childElement.GetStandaloneParameter<string>(10);
string value = parameter.GetValue();

For table data, retrieve the table through GetTable(...) and then use GetRow(...) or GetData(...), depending on whether a single row or multiple rows are needed.

Vasco Marcelino [SLC] [DevOps Member] Posted new comment 5 days ago
Juan Falcon commented 20th May 2026

Hi Vasco

I thought about using direct querying to each element, but it requires having the service parameters in the code. Is there any way to query the service for the elements that are already filtered?

Thanks

Vasco Marcelino [SLC] [DevOps Member] commented 5 days ago

Hi Juan, you can try retrieving the service with IDms (IDms.GetService).
From the service returned access, you can get the list of included parameters as shown below.

IDmsService.ParameterSettings.IncludedParameters, which contains the ID of the element, but also ServiceParamSettings.ParameterFilters that contain the ID of the parameter.

Please find below a quick example:
public class Script
{
   public void Run(IEngine engine)
   {
       var dms = engine.GetDms();

       // Retrieve the service by its ID
       int serviceId = 1234; // Replace with your actual service ID
       var service = dms.GetService(serviceId);

       // Access the included parameters of the service
       var includedParameters = service.ParameterSettings.IncludedParameters;

       // Iterate through the included parameters to find parameter filters
       foreach (var paramSetting in includedParameters)
       {
           var parameterFilters = paramSetting.ParameterFilters;

           // Check if there are any parameter filters
           if (parameterFilters != null && parameterFilters.Any())
           {
               // Retrieve the first parameter ID from the filters
               var firstParameterId = parameterFilters.First().ParameterId;
              
               // Output the parameter ID
               engine.GenerateInformation($"First Parameter ID from Filter: {firstParameterId}");
               break; // Exit after finding the first parameter ID
           }
       }
   }
}

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