---
schema_version: "1"
id: 289ce54c0f1bdbe447ad0dc9e23673b49b1f7328f8f52518b5014562bb35695f
title: getName()
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_canvas_ApplicationContext_getName.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_canvas_ApplicationContext_getName.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 990161b466bebea197bdbc5b2e0c4ac0bf7c5083432ae2044776c4364ab7f120
description: Retrieves the name of the canvas app.
---
# getName()

Retrieves the name of the canvas app.

## Signature

public String getName()

## 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 name of the canvas app.