Skip to main content
Version: v6.7.0

Set parameters

Command Description​

Set the value of the parameter specified in the "Data Assets - parameter" module of the Commander. Only the values of text, numeric value and Boolean type are supported

Command Prototype​

Asset.SetAsset(assetName,value)

Command parameter​

parametermandatorytypedefault valueInstructions
assetNameTruedynamicEnum""Select from the parameter names created by the user in the "Data Assets - parameter" module of the Commander (Laiye Automation Platform Commander)
valueTruestring"parameter1"Only supports passing in text, numeric, and boolean values

Run instance​

/**************************Set Parameters**************************
Command prototype:
Asset.SetAsset(assetName, value)
Input parameters:
assetName -- The parameter name in commander
value -- The value to be set
Output parameters:
--> None
Notes:
None
******************************************************************/
Asset.SetAsset("test", "parameter1")