Hear from Salesforce leaders on how to create and deploy Agentforce agents.
Contact Us 1-800-596-4880

version

version(): String

Returns the DataWeave version that is currently running.

Introduced in DataWeave version 2.5.0.

Example

This example returns the DataWeave version.

Source

%dw 2.0
import * from dw::Runtime
output application/json
---
version()
DataWeave

Output

"2.5"
Json