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
    • Climb the leaderboard!
    • Swag Shop
  • Downloads
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

How to access DOM instance field value from automation script

Solved1.42K views17th October 2022automation scripts DOM
0
Gerwin van der Kamp [DevOps Enabler]2.94K 14th October 2022 0 Comments

Hi,

I'm trying to get information of an DOM instance from an automation script. I'll trigger that script through an low code app and pass the guid of the instance i need to open in the automation script.
Looking at the examples on https://docs.dataminer.services/user-guide/Advanced_Modules/DOM/DOM_examples/DOM_status_system_example.html

there mainly focused on creating and updating fields, but little to no information about reading the information based on having an valid instance guid.

Jens Vandewalle [SLC] [DevOps Enabler] Answered question 14th October 2022

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Michiel Clepkens [SLC] [DevOps Advocate]1.32K Posted 14th October 2022 0 Comments

Hi Gerwin

Retrieving FieldValues from a DOM instance can be done using the following steps:

  1. Create an object of the DomHelper class (DomHelper class | DataMiner Docs)
  2. Create a filter to find the right DOM instance in the collection of instances

    Skyline.DataMiner.Net.Messages.SLDataGateway. ManagedFilter<T, F> domInstanceIdFilter = DomInstanceExposers.Id.Equal(domInstanceId);
    DomInstance domInstance = domHelper.DomInstances.Read(domInstanceIdFilter).FirstOrDefault();

  3. Go through all linked Sections
  4. Use the Skyline.DataMiner.Net.Sections.Section.GetFieldValueById(FieldDescriptorID) method to find the FieldValue (Method GetFieldValueById | DataMiner Docs)

Hopefully this will help you out. Note that there's a change a more efficient way to do this does exist. In case you know a more performant way, please correct my answer.

Kind regards

Michiel Clepkens [SLC] [DevOps Advocate] Answered question 14th October 2022
You are viewing 1 out of 2 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