Share via


Accessing global functions

Global functions for an application dictionary are accessed through the dictionary class. This class has a Functions property that provides access to the collection of global functions in the dictionary. The dictionary class for the application dictionary is located in the following namespace:

Microsoft.Dexterity.Applications

 

For instance, to access the collection of global functions in the Dynamics dictionary, use the following syntax:

Microsoft.Dexterity.Applications.Dynamics.Functions

 

To access a specific global function, such as the GetCurrentDirectory function (GetCurrentDirectory), use the following syntax shown below. (This example assumes the namespace mentioned above has been referenced.)

Dynamics.Functions.GetCurrentDirectory

 

Hint: The IntelliSense in Visual Studio will tell you what global function in Microsoft Dynamics GP is being referred to by the expression.