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
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • 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)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Automation Script – Can I Retrieve Multiple Columns From Table Parameter

Solved1.10K views31st March 2022Automation Automation script
3
Jim Woodier [DevOps Member]765 10th December 2021 0 Comments

In an Automation Script I need to find a primary (or display) key based on the value in another column of the table. The table currently has approximately 5800 rows, so doing a GetTablePrimaryKeys() then iterating through each row to check the other column is slow and resource intensive.
Is there an unpublished C# Element method that I can use to either retrieve the entire table or primary key and one other column as an array?

Thanks!

Jim Woodier [DevOps Member] Selected answer as best 31st March 2022

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
5
Miguel Obregon [SLC] [DevOps Catalyst]18.98K Posted 11th December 2021 4 Comments

Hi Jim,

You could use the DataMiner class library to retrieve the full table for a specific element. Please see below example:

// Create a DMS object
IDms dms = engine.GetDms();

// Get the element based on element name
IDmsElement dmsElement = dms.GetElement("My Element Name");

// Get table with PID = 1000
IDmsTable dmsTable = dmsElement.GetTable(1000);

// Parse information from table
...

Reference:

  • IDmsElement interface
  • IDmsElement.GetTable method
  • IDmsTable Interface
Jim Woodier [DevOps Member] Selected answer as best 31st March 2022
Jim Woodier [DevOps Member] commented 13th December 2021

Hi Miguel,
Thanks for the answer, this is exactly what I’m looking for. However I’m having some namespace issues incorporating it in to an automation script. Can you specify the correct DLL reference and include directives?
When I try to include the namespace below it is not found, and I can’t find the referenced DLL anywhere on our DMA. We are running version 10.1.12.0-11129

Namespace: Skyline.DataMiner.Library.Common

Assembly: DataMiner System Interfaces (in DataMiner System Interfaces.dll) Version: 1.0.0.0 (1.0.0.0)
Thanks!

Miguel Obregon [SLC] [DevOps Catalyst] commented 13th December 2021

Hi Jim,
In Dojo there is a free course about DataMiner Automation.
https://community.dataminer.services/courses/dataminer-automation/

In the Advance level, you can find two topics:

– ‘Creating Automation scripts using DataMiner Integration Studio (DIS)’: This topic will show you how to create an automation script using DIS (required to use the class library)

– ‘DataMiner Integration Studio (DIS) Class library’: This topic will show you how to use the class library. The video explains a use case where an automation script needs to communicate with an element. However, for your specific use case, starting from minute 04:20 you will find a small explanation about the ‘Get DMS snippet’ (this method is used in the example)

Please let me know if you need additional information

Jim Woodier [DevOps Member] commented 13th December 2021

Unfortunately I do not have access to DIS so the Class Library is not helpful to me. Unless you have any other suggestions I will consider the answer to be that it is not possible given our current situation.

Miguel Obregon [SLC] [DevOps Catalyst] commented 15th December 2021

Hi Jim,
I am afraid that without the class library, it will not be possible to implement the methods described in the example. Maybe you could check with the squad assigned to your account for possible alternatives

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