Get D365AOTObject - FH-Inway/d365fo.tools GitHub Wiki
Search for AOT object
Get-D365AOTObject [-Path] <String> [[-ObjectType] <String[]>] [[-Name] <String>] [-SearchInPackages]
[-IncludePath] [<CommonParameters>]
Enables you to search for different AOT objects
Get-D365AOTObject -Name *flush* -ObjectType AxClass -Path "C:\AOSService\PackagesLocalDirectory\ApplicationFoundation"
This will search inside the ApplicationFoundation package for all AxClasses that matches the search flush.
Get-D365AOTObject -Name *flush* -ObjectType AxClass -IncludePath -Path "C:\AOSService\PackagesLocalDirectory\ApplicationFoundation"
This will search inside the ApplicationFoundation package for all AxClasses that matches the search flush and include the full path to the files.
Get-D365InstalledPackage -Name Application* | Get-D365AOTObject -Name *flush* -ObjectType AxClass
This searches for all packages that matches Application* and pipes them into Get-D365AOTObject which will search for all AxClasses that matches the search flush.
Get-D365AOTObject -Path "C:\AOSService\PackagesLocalDirectory\*" -Name *flush* -ObjectType AxClass -SearchInPackages
This is an advanced example and shouldn't be something you resolve to every time.
This will search across all packages and will look for the all AxClasses that matches the search flush. It will NOT search in the XppMetaData directory for each package.
This can stress your system.
Path to the package that you want to work against
Type: String
Parameter Sets: (All)
Aliases: PackageDirectory
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The type of AOT object you're searching for
Type: String[]
Parameter Sets: (All)
Aliases: Type
Required: False
Position: 2
Default value: @("AxClass")
Accept pipeline input: False
Accept wildcard characters: False
Name of the object that you're looking for
Accepts wildcards for searching. E.g. -Name "Work*status"
Default value is "*" which will search for all objects
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: *
Accept pipeline input: False
Accept wildcard characters: False
Switch to instruct the cmdlet to search in packages directly instead of searching in the XppMetaData directory under a given package
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Switch to instruct the cmdlet to include the path for the object found
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Mötz Jensen (@Splaxi)