Table of Contents

GetGuid Procedure

Codeunit JSON Functions

Reads the value at Path and returns the value as Guid. An error will be thrown if the value doesn't exist.

Overloads

Name Description
GetGuid(JsonObject; Text): Guid Reads the value at Path and returns the value as Guid.
GetGuid(JsonObject; Text; Boolean): Guid Reads the value at Path and returns the value as Guid.

GetGuid(JsonObject; Text) Procedure

Reads the value at Path and returns the value as Guid. An error will be thrown if the value doesn't exist.

Signature

GetGuid(JsonObj: JsonObject; Path: Text) : Guid

Parameters

JsonObj JsonObject

The JsonObject to read from.

Path Text

The JSONPath expression that will be used to get the requested value.

Returns

Guid

The value found at Path as Guid.

GetGuid(JsonObject; Text; Boolean) Procedure

Reads the value at Path and returns the value as Guid.

Signature

GetGuid(JsonObj: JsonObject; Path: Text; DefaultIfUndefined: Boolean) : Guid

Parameters

JsonObj JsonObject

The JsonObject to read from.

Path Text

The JSONPath expression that will be used to get the requested value.

DefaultIfUndefined Boolean

If true an error is not thrown if the value doesn't exist. Instead a blank guid is returned. If false an error is thrown if the value doesn't exist.

Returns

Guid

The value found at Path as Guid.

This documentation is generated from Smart Toolbox v27.1