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

DOM – Can I use DomInstanceExposers to get instances where a specific field contains data

Solved720 views29th February 2024DOM
2
Jens Vandewalle [SLC] [DevOps Enabler]9.44K 15th February 2024 0 Comments

Hi Dojo,

It is possible with DomInstanceExposers to retrieve all instances where a specific FieldDescriptor contains data? I’m not looking for specific data, it just needs to contain data.

Jens Vandewalle [SLC] [DevOps Enabler] Selected answer as best 16th February 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Thomas Ghysbrecht [SLC] [DevOps Enabler]4.84K Posted 15th February 2024 2 Comments

Hi Jens,

It is possible to use the ‘KeyExists’ exposer to retrieve all DOM instances that have a value for a given FieldDescriptor.

There are however some important notes:

  • This will only work efficiently when using Elasticsearch or OpenSearch AND when you are running DataMiner version 10.3.12 and up.
  • In any other case, when you use this filter, it will cause all DOM instances to be retrieved from the DB (only those that match any other filter that would be part of the request), which will then be filtered down using the ‘KeyExists’ condition. If you have a DOM definition that has millions of DOM instances linked, all of them may be read from the DB depending on your other conditions! For STaaS, there is a task already on the backlog of the cloud team to add support for this. (DCP221844)

To conclude, it is possible, but do this with caution. Only use this in cases where you know the amount of DOM instances is limited (<1000) or when you are certain that this won’t be run on unsupported systems.

Jens Vandewalle [SLC] [DevOps Enabler] Selected answer as best 16th February 2024
Jens Vandewalle [SLC] [DevOps Enabler] commented 15th February 2024

Hi Thomas, thank you for the detailed answer!
Is there a way that I can know how much DOM instances there are for a certain definition without getting them?

Thomas Ghysbrecht [SLC] [DevOps Enabler] commented 16th February 2024

Yes, you can use the ‘Count’ method on DomHelper to know how many records would be retrieved. This is done performantly in the DB. Do note that you should take care when using the ‘KeyExists’ exposer here as well for the same reasons mentioned in the main response.

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