setTemplateParameter method: ServiceAPI class

This topic discusses the setTemplateParameter method for the ServiceAPI class.

Syntax

setTemplateParameter(parameter_name,anyValue,boolean)

Description

Use this method to populate the template value based on the parameter defined, the input value, and if the parameter is defined as a collection. This method is valid for Consumer Application Services only.

Parameters

Parameter Description

parameter_name

Specifies the name of the template parameter.

anyValue

Specifies the type of the template parameter (as Any).

Values can be the following:

  • Boolean

  • Date

  • Integer

  • Number

  • Number Array

  • String

  • String Array

  • Time

Returns

None.

Example

%This.ServiceAPI.setTemplateParameter("pilot", &Name, False);