Skip to main content
Skip table of contents

Execute: Embed External Scripts

Tag: Execute

The action Execute lets you embed the execution of an external script within your primary automation script.

Detailed Description

The Execute action operates as if the entire secondary script contents were included in the primary script.

FilePath will validate if both the folder path is correct and the file itself exists.

Tag Attributes

AttributesAttribute ValuesValue Description
FilePathUser DefinableThe external script file path and name to be used - Required


Example Scripts

XML
<Execute FilePath="C:\dev\Temp_XML\replicationEZ-secondaryscript.xml"/>
XML
<YtriaAutomation>
	<Load Server="Acme01/ACME" partial="true">
		<Load Database="AutoTest\lm_us_8.nsf" Select="True"/>
		<Load Database="AutoTest\lm_nab_8.nsf" Select="True"/>
		<Load Database="AutoTest\info_s03.nsf" Select="True"/>
		<Load Database="storebackup.ntf" Select="True"/>
	</Load>
	<Execute FilePath = "C:\dev\Temp_XML\databaseEZ_secondaryscript.xml"/>
	<GridDataComposition FilePath = "C:\dev\Temp_XML\databaseEZ-grid1.xml"/>
</ytriaAutomation>

In the script above, the databases indicated in the Load block will be loaded into the main grid of databaseEZ, and the file "databaseEZ_secondaryscript.xml" will be executed as if the entire contents of the secondary script were included in the Execute line's position. A pre-saved grid configuration file "databaseEZ_grid1.xml" will then be applied to the main grid.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.