# NavApp.GetResource(Text, Guid, var InStream [, TextEncoding]) Method
> Version: _Available or changed with runtime version 18.0._
Retrieves a public resource from the specified app and loads it into the specified InStream.
## Syntax
```al
 NavApp.GetResource(ResourceName: Text, AppId: Guid, var ResourceStream: InStream [, 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.
ResourceStream
Type: ../instream/instream-data-type
The InStream object type that has been created.
*[Optional] Encoding*
Type: ../textencoding/textencoding-option
The encoding that will be used by the stream. The default encoding is MSDos.
## 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-getresource-string-guid-instream-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-getresource-string-guid-instream-textencoding-method/
