TCA.getParam

Returns the value of the specified parameter.

Note: You can also use the VuGen toolbar to input parameters into the script.

TCA.getParam(name);

Arguments

name. (string) Name of the parameter.

Return value

A promise that is fulfilled with a string. If the parameter exists, it returns its value. If the parameter does not exist, it returns an empty string.

Example

Copy code
TCA.getParam(“myParam”).then(function(result){
    TCA.done(result);
}).catch(function (error) {
TCA.doneWithError(error);
});