# NavApp.GetResourceAsText(Text, Guid [, TextEncoding]) Method
> Version: _Available or changed with runtime version 18.0._
Retrieves the specified public resource from the given app as Text.
## Syntax
```al
ResourceValue :=   NavApp.GetResourceAsText(ResourceName: Text, AppId: Guid [, Encoding: TextEncoding])
```
## Parameters
ResourceName
Type: ../text/text-data-type
Name of the public resource to retrieve.
AppId
Type: ../guid/guid-data-type
The ID of the app from which to retrieve the public resource.
*[Optional] Encoding*
Type: ../textencoding/textencoding-option
The encoding that will be used by the stream. The default encoding is MSDos.
## Return Value
ResourceValue
Type: ../text/text-data-type
## Related information
navapp-data-type
Adding and accessing resources in Business Central extensions<../../devenv-app-resources>
Getting started with AL<../../devenv-get-started>
Developing extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/navapp/navapp-getresourceastext-string-guid-textencoding-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/navapp/navapp-getresourceastext-string-guid-textencoding-method/
