Skip to main content
SUBMITTED

Ability to use code snippets or Instance Variables in PowerShell Executable

Related products:TimeXtender Data Integration
  • November 23, 2023
  • 2 replies
  • 44 views

erik.van.mastrigt
TimeXtender Xpert
Forum|alt.badge.img+3

In order to avoid repetitive code, it would be useful to make code snippets and/or use Instance Variables in PowerShell executables.

For instance, in this article

API keys are used in PowerShell Executables. If you have multiple scripts using the same key, you want to store them somewhere centrally.

2 replies

peter.jensen
TimeXtender Xpert
Forum|alt.badge.img+3
  • TimeXtender Xpert
  • August 19, 2025

It would also mean less work when running PowerShell scripts in different environments (dev, uat, prd), e.g. connection parameters for adf in multi-environment, …

 


  • Community Manager
  • December 15, 2025

Hi Peter. This is actually possible but not visible in the UI.

In PowerShell scripts you can just add the text of:
- Query Snippets. For example: {SomeSnippet}

- Global Parameters. For example: {$SomeParameter}

- Input Parameters. For example: {@parametername[default:value][datatype:value]}

​​​-

 

Create dynamic packages that accept parameters | Community