The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

Variable.SetValue

Assigns value to a specified variable

Variable.SetValue(1, 2)

OrdinalTypeDescription
1stringRequiredName of variable
2stringRequiredVaue to assign to variable

This sample code assigns the specified value to a variable.