ReleaseUpdateDB::addTableDependency Method [AX 2012]

Adds a table dependency for scripts whose table dependencies cannot be set using upgrade attributes.

server public static void addTableDependency(
    ClassId _scriptClassId, 
    MethodName _scriptMethod, 
    TableName _tableName, 
   [boolean _readonly])

Run On

Server

Parameters

_scriptClassId
Type: ClassId Extended Data Type
The class ID of the script.
_scriptMethod
Type: MethodName Extended Data Type
The script method.
_tableName
Type: TableName Extended Data Type
The table name on which the method depends.
_readonly
Type: boolean
A Boolean value that indicates whether the script only has read access on the table; optional.

This method can be called by any PreSync script to set up the dependencies on tables.

This method should only be used for some special scripts whose dependencies cannot be set by using the attributes.

Show: