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

Is it possible to forward a partial table through mail as CSV attachment?

Solved928 views7th January 2022Automation Reports
0
Michiel Saelen [SLC] [DevOps Enabler]5.63K 6th January 2022 0 Comments

We are looking for a way to forward a partial (filtered) table through mail as a CSV attachment or worst case the complete table. We know that through GQI (in dashboards) this is possible, but this requires us to migrate towards Elastic which is currently not yet planned. We already have a custom report that is triggered through automation, but we are missing the option to specify the ‘report-format’.

Do you know a way to forward a table as a CSV attachment through mail without elastic?
Or, if you can specify the ‘report-format’ when triggering the report from automation?

Code used from automation:

// prepare a report with the “Daily Report” template
MailReportOptions reportOptions = engine.PrepareMailReport(“Daily Report”);

// set up the email to go to example@example.org
EmailOptions options = new EmailOptions()
{
SendAsPlainText = false,
Title = “Test”,
Message = spReportOptions.Value,
TO = “example@example.org”
};
reportOptions.SetMailOptions(options);

// send the configured report
engine.SendReport(reportOptions);

Michiel Saelen [SLC] [DevOps Enabler] Selected answer as best 7th January 2022

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Wim Bruynooghe [SLC] [DevOps Advocate]6.59K Posted 6th January 2022 0 Comments

Regarding GQI in the new Dashboards app, Elastic is actually not required for regular parameter tables. Only some advanced data sources in GQI require Elastic.

For the legacy Reporter, in a custom report you can get the table data and write it as a csv file to the mail output folder (strOutputdir):

var strOutputFile = strOutputDir + “\\reportcsv.csv”;
var fso = new ActiveXObject(“Scripting.FileSystemObject”);
var textfile = fso.CreateTextFile(strOutputFile, true);
textfile.Write(csv);
textfile.Close();

All files in strOutputDir will get added as an attachment to the email.

Michiel Saelen [SLC] [DevOps Enabler] Selected answer as best 7th January 2022
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