Show / Hide Table of Contents

    GetDate Procedure

    Codeunit JSON Functions

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

    Overloads

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

    GetDate(JsonObject; Text) Procedure

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

    Signature

    GetDate(JsonObj: JsonObject; Path: Text) : Date
    

    Parameters

    JsonObj JsonObject

    The JsonObject to read from.

    Path Text

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

    Returns

    Date

    The value found at Path as Date.

    GetDate(JsonObject; Text; Boolean) Procedure

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

    Signature

    GetDate(JsonObj: JsonObject; Path: Text; DefaultIfUndefined: Boolean) : Date
    

    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 date is returned. If false an error is thrown if the value doesn't exist.

    Returns

    Date

    The value found at Path as Date.

    This documentation is generated from Smart Toolbox v27.0

    Back to top Copyright © 2020 SmartApps
    Generated by DocFX