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 you 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

Sharing Variables Between automations script in a Low-Code App

Solved94 views1 day agoautomation scripts Automatoin Low code editor
0
Ömer Eryaman [DevOps Advocate]604 2 days ago 0 Comments

Hello,

I created a low-code app that contains two buttons.
Each button triggers a different automation script.

My problem is this:
How can I store the output of the first automation script inside the low-code app and then read that stored value from the second automation script?

I already created a variable using the low-code app variable menu.
In the button settings, I used the Change Variable action and linked it to an output window to verify that the value is being updated correctly.
However, I'm not sure how to make script 2 read the saved output from script 1.

In the 1st automation script:
engine.AddScriptOutput("json_buffer", response);

In the 2nd automation script:
string json_buffer = engine.GetScriptParam("json_buffer").Value;

json_buffer is always null

Thank you for help

Ömer Eryaman [DevOps Advocate] Selected answer as best 1 day ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Wout Mahieu [SLC] [DevOps Catalyst]10.42K Posted 2 days ago 4 Comments

Hi Ömer,

You can add script input parameters linked to feeds to pass data to a script:

  1. Add a Parameter to the script in the Automation module in Cube.
  2. Open the 'On click' event config of the second button.
  3. Open the 'Execute a script' action that should already configured. Now a 'Parameters' section should be available.
  4. Link the variable that contains the saved output of the first script to the input you created.
  5. In the second script, you can access the input argument by name via engine.GetScriptParam("Param name")

Feel free to ask more specific information is something is unclear.

Ömer Eryaman [DevOps Advocate] Selected answer as best 1 day ago
Ömer Eryaman [DevOps Advocate] commented 1 day ago

Thanks. By mistake I created a parameter in the wrong script in the DataMiner cube and although I deleted it, the script still asks for that parameter.

In the first script (the correct one), I created the parameter, but it does not show up in the Low Code Apps button settings.

Is there another way to create the parameter directly with the script? Whenever I publish the script via Visual Studio, the parameter gets deleted and I always need to add it again in the cube.

Ömer Eryaman [DevOps Advocate] commented 1 day ago

*after refreshing the page the wrong paramter got deleted

Wout Mahieu [SLC] [DevOps Catalyst] commented 1 day ago

Hi Ömer, scripts are cached when using Low Code Apps. If something in the script changes (except the actual code itself), you might need to refresh the webpage before it is updated. This could explain what you have noticed with the updated inputs. Unfortunately script parameters cannot be defined in the script code itself.

Ömer Eryaman [DevOps Advocate] commented 1 day ago

okay thanks you very much

your 5 points worked for me

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

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin