Edit

NavApp.GetResourceAsJson(Text, Guid [, TextEncoding]) Method

Version: Available or changed with runtime version 18.0.

Retrieves the specified public resource from the given app as a JsonObject.

Syntax

ResourceValue :=   NavApp.GetResourceAsJson(ResourceName: Text, AppId: Guid [, 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.

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

Return Value

ResourceValue
 Type: JsonObject

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