Show / Hide Table of Contents

    CheckAllowedCaller Procedure

    Codeunit Call Stack Functions

    Checks if a function is called from the specified app. If the function is called from another app and function than specified, an error is thrown. This can be useful to prevent functions from being called from the wrong app or function.

    Overloads

    Name Description
    CheckAllowedCaller(Text; ObjectType; Integer; Text; Text; Text) Checks if a function is called from the specified app.
    CheckAllowedCaller(Text; Text) Checks if a function is called from the given app.

    CheckAllowedCaller(Text; ObjectType; Integer; Text; Text; Text) Procedure

    Checks if a function is called from the specified app. If the function is called from another app and function than specified, an error is thrown. This can be useful to prevent functions from being called from the wrong app or function.

    Signature

    [NonDebuggable]
    CheckAllowedCaller(MatchObjectName: Text; MatchObjectType: ObjectType; MatchObjectId: Integer; MatchFunctionName: Text; MatchAppName: Text; MatchPublisher: Text)
    

    Parameters

    MatchObjectName Text

    The name of the allowed calling object, including any surrounding quotes.

    MatchObjectType ObjectType

    The type of the allowed calling object.

    MatchObjectId Integer

    The id of the allowed calling object.

    MatchFunctionName Text

    The name of the allowed calling function.

    MatchAppName Text

    The name of the allowed calling app.

    MatchPublisher Text

    The publisher of the allowed calling app.

    CheckAllowedCaller(Text; Text) Procedure

    Checks if a function is called from the given app. If the function is called from another app than specified, an error is thrown. This can be useful to prevent functions from being called from other apps.

    Signature

    [NonDebuggable]
    CheckAllowedCaller(MatchAppName: Text; MatchPublisher: Text)
    

    Parameters

    MatchAppName Text

    The name of the allowed calling app.

    MatchPublisher Text

    The publisher of the allowed calling app.

    This documentation is generated from Smart Toolbox v27.0

    Back to top Copyright © 2020 SmartApps
    Generated by DocFX