Result Class

Contains methods to retrieve data that was transformed using Script class methods.

DataWeave

See Script Class for an example to run a DataWeave script from Apex and retrieve the resulting script output.

The following are methods for Result.

  • getValue()

    Returns the result of a DataWeave script execution as an object.

  • getValueAsString()

    Returns the result of a DataWeave script execution as a string value.

Returns the result of a DataWeave script execution as an object.

public Object getValue()

Type: Object

Returns the result of a DataWeave script execution as a string value.

public String getValueAsString()

Type: String