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

updating DOM instances from an automation script

Solved889 views13th July 2023automation scipt DOM
1
Jeroen Geldhof [SLC] [DevOps Enabler]5.07K 12th August 2022 0 Comments

I’m searching for code reference or an example on how to:
1.  filter on DOM instances
2.  Update a DOM instance

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 13th July 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Wouter Bogaert [SLC] [DevOps Advocate]969 Posted 12th August 2022 3 Comments

Hi Jeroen,

I’m not sure what you already have in place code-wise.
Do you still need to start from scratch?
The below examples assume that you have a lot in place already (eg initiated a DomHelper, have the section definitions and field descriptors, etc.).
If you need more details, please send me a message.

1. There are a couple of ways to filter (or search for) a specific DOM instance.
Either by instance id or by a field value.

var filter = DomInstanceExposers.Id.Equal(instanceId);
var instance = DomHelper.DomInstances.Read(filter).FirstOrDefault();

var filter = DomInstanceExposers.FieldValues.Field(fieldGuid.toString()).Equal(valueToLookFor);
var instances = DomHelper.DomInstances.Read(filter);
var instance = instances.FirstOrDefault();

2. To update a DOM instance, you can first retrieve it using one of the above ways and then update the required fields.

instance.AddOrUpdateFieldValue(sectionDefinition, fieldDescriptor, valueToUpdateTo);
DomHelper.DomInstances.Update(instance);

Marieke Goethals [SLC] [DevOps Catalyst] Posted new comment 13th July 2023
Jeroen Geldhof [SLC] [DevOps Enabler] commented 12th August 2022

Thanks, it will take some time to try it out.
I’ll be back in the office the 29th 😉

Thomas Ghysbrecht [SLC] [DevOps Enabler] commented 12th August 2022

FYI: The official DOM documentation will be available on docs.dataminer.services in the (very) near future! 🙂

Marieke Goethals [SLC] [DevOps Catalyst] commented 13th July 2023

The DOM documentation is now available here: https://docs.dataminer.services/user-guide/Advanced_Modules/DOM/DOM.html

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