---
schema_version: "1"
id: 59f0291934ce68f1a4fe9bf83aa0d5d05baf3a43d91f31a58b17ca0175e1cc0b
title: getVersion()
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_canvas_ApplicationContext_getVersion.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_canvas_ApplicationContext_getVersion.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d69ecae4d06b37b07432813a72950c90f2f97b0d6e12786a016852ccfcf9f23d
description: Retrieves the current version of the canvas app.
---
# getVersion()

Retrieves the current version of the canvas app.

## Signature

public String getVersion()

## Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

## Usage

Use this method to get the current version of the canvas app. This value changes after you update and republish a canvas app in an organization. If you are in a Developer Edition organization, using this method always returns the latest version.