Edit

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

 NavApp.GetResource(ResourceName: Text, AppId: Guid, var ResourceStream: InStream [, Encoding: TextEncoding])

Parameters

ResourceName
 Type: Text
Name of the public resource to retrieve.

AppId
 Type: Guid
The ID of the app from which to retrieve the public resource.

ResourceStream
 Type: InStream
The InStream object type that has been created.

[Optional] Encoding
 Type: TextEncoding
The encoding that will be used by the stream. The default encoding is MSDos.

NavApp data type
Adding and accessing resources in Business Central extensions
Getting started with AL
Developing extensions