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

Automation Script – How to create/update DataMiner table rows?

41 views7 hours ago
0
Alex Gomez Gomez58 1 day ago 1 Comment

Hi,

I'm building an Automation script that gathers data from multiple Cisco D9800 elements and needs to populate a table in another DataMiner element.

I can successfully:

Element satInfo = engine.FindElement("Sat info 7");
string[] keys = satInfo.GetTablePrimaryKeys(3000);
Mostrar más líneas

and also read remote Cisco elements:

Element cisco = engine.FindElement(dmaId, elementId);
cisco.GetParameter(...);
cisco.GetTablePrimaryKeys(...);

The data collection logic is working correctly.

I also confirmed that writing a normal parameter works:

satInfo.SetParameter(
1000,
"Automation OK");

However, I cannot find a supported way to create/update rows in a DataMiner table from Automation.

I found the following methods on the Element object:

GetParameterByPrimaryKey
SetParameterByPrimaryKey
GetTablePrimaryKeys
GetTableDisplayKeys
GetTableKeyMappings

I tried:

satInfo.SetParameterByPrimaryKey(
1012,
"TEST_ROW",
"TEST VALUE");
and also:

satInfo.SetParameterByPrimaryKey(
1012,
existingPrimaryKey,
"TEST VALUE");

but both fail with:

Set Parameter Failed: 0x80004005
Mostrar más líneas

My goal is the equivalent of what a protocol QAction does with:

protocol.FillArray(
tablePid,
rows,
NotifyProtocol.SaveOption.Full);
Mostrar más líneas

Questions:

What is the supported way to create table rows from an Automation script?
What is the supported way to update existing rows from an Automation script?
Is there an Automation equivalent of FillArray()?
Should this be done through SLNet messages instead of the Element object API?

Any code sample would be greatly appreciated.

Thanks!

Mauro Druwel [SLC] [DevOps Advocate] Answered question 7 hours ago
Alex Gomez Gomez commented 1 day ago

For clarification:
PID 1010 is the table.
PID 1011-1019 are table columns.
Should SetParameterByPrimaryKey() be called on the table PID or on the column PID?

Example:
SetParameterByPrimaryKey(1012, pk, value)

currently fails with 0x80004005.

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Mauro Druwel [SLC] [DevOps Advocate]513 Posted 7 hours ago 0 Comments

Hi Alex,

Have you tried using the DataMiner Class Library? It provides IDmsTable.AddRow() and IDmsTable.SetRow() methods that might be what you're looking for.

You could try installing the Skyline.DataMiner.Core.DataMinerSystem.Automation NuGet package and using something like:

<code><span class="line">IDms dms = engine.GetDms();</span>
<span class="line">IDmsElement element = dms.GetElement("Sat info 7");</span>
<span class="line">IDmsTable table = element.GetTable(3000);</span>

<span class="line">table.AddRow(new object[] { "PK_VALUE", "col1Value", "col2Value" });  // create</span>
<span class="line">table.SetRow("PK_VALUE", new object[] { "PK_VALUE", "newValue" });    // update</span></code>

Here's the documentation for reference: https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Core.DataMinerSystem.Common.IDmsTable.html

I haven't tested this myself, but it might be worth exploring. Hope it helps!

Mauro Druwel [SLC] [DevOps Advocate] Answered question 7 hours ago
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

© 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