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
    • Agility
      • Kanban workshop
      • Agile Fundamentals
    • 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
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Use Placeholder in Email Automation Script Action

Solved1.80K views22nd November 2021Automation script
3
João Silva [SLC] [DevOps Member]329 20th October 2020 0 Comments

Hello,

I was looking for a way to set the message field of the Email Automation Script Action using a Script Param. Is it possible? If so, how is it done?

Thank you,

João Silva [SLC] [DevOps Member] Selected answer as best 22nd November 2021

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
8
João Severino [SLC] [DevOps Catalyst]13.23K Posted 20th October 2020 0 Comments

Hi João,

You can send an email directly from an automation script action, as documented here (link).

But, as mentioned in the note at the end of the help page linked above, you could also do that from within a C# code block.

From within a C# code block you have access to your script parameters.

João Silva [SLC] [DevOps Member] Selected answer as best 22nd November 2021
6
Thomas Ghysbrecht [SLC] [DevOps Enabler]4.91K Posted 20th October 2020 0 Comments

As João Severino already said, you will have to create a C# code block to use the script parameters in an email.

This is a very short example script that does this:

var scriptParamValue = engine.GetScriptParam(“ParamName”).Value;
var bodyOfEmail = “This is the body of an email. Script param value is ” + scriptParamValue;
engine.SendEmail(bodyOfEmail, “Test Email”, “example@domain.com”);

João Silva [SLC] [DevOps Member] Unselected an answer 20th October 2020
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