Get D365Model - FH-Inway/d365fo.tools GitHub Wiki


external help file: d365fo.tools-help.xml Module Name: d365fo.tools online version: schema: 2.0.0

Get-D365Model

SYNOPSIS

Get available model from Dynamics 365 Finance & Operations environment

SYNTAX

Get-D365Model [[-Name] <String>] [[-Module] <String>] [-CustomizableOnly] [-ExcludeMicrosoftModels]
 [-ExcludeBinaryModels] [[-BinDir] <String>] [[-PackageDirectory] <String>] [<CommonParameters>]

DESCRIPTION

Get available model from the machine running the AOS service for Dynamics 365 Finance & Operations

EXAMPLES

EXAMPLE 1

Get-D365Model

Shows the entire list of installed models located in the default location on the machine.

A result set example:

ModelName Module IsBinary Customization Id Publisher


AccountsPayableMobile AccountsPayableMobile False DoNotAllow 895571380 Microsoft Corporation ApplicationCommon ApplicationCommon False DoNotAllow 8956718 Microsoft ApplicationFoundation ApplicationFoundation False Allow 450 Microsoft Corporation IsvFoundation IsvFoundation True Allow 895972027 Isv Corp IsvLicense IsvLicense True DoNotAllow 895972028 Isv Corp

EXAMPLE 2

Get-D365Model -CustomizableOnly

Shows only the models that are marked as customizable. Will only include models that is Customization = "Allow".

A result set example:

ModelName Module IsBinary Customization Id Publisher


ApplicationFoundation ApplicationFoundation False Allow 450 Microsoft Corporation ApplicationPlatform ApplicationPlatform False Allow 400 Microsoft Corporation ApplicationPlatformFormAdaptor ApplicationPlatformFormAdaptor False Allow 855030 Microsoft Corporation IsvFoundation IsvFoundation True Allow 895972027 Isv Corp

EXAMPLE 3

Get-D365Model -ExcludeMicrosoftModels

Shows only the models that doesn't have "Microsoft" in the publisher. Will only include models that is Publisher -NotLike "Microsoft*".

A result set example:

ModelName Module IsBinary Customization Id Publisher


IsvFoundation IsvFoundation True Allow 895972027 Isv Corp IsvLicense IsvLicense True DoNotAllow 895972028 Isv Corp

EXAMPLE 4

Get-D365Model -ExcludeBinaryModels

Shows only the models that are NOT binary. Will only include models that is IsBinary = "False".

A result set example:

ModelName Module IsBinary Customization Id Publisher


AccountsPayableMobile AccountsPayableMobile False DoNotAllow 895571380 Microsoft Corporation ApplicationCommon ApplicationCommon False DoNotAllow 8956718 Microsoft ApplicationFoundation ApplicationFoundation False Allow 450 Microsoft Corporation

EXAMPLE 5

Get-D365Model -CustomizableOnly -ExcludeMicrosoftModels

Shows only the models that are marked as customizable and NOT from Microsoft. Will only include models that is Customization = "Allow". Will only include models that is Publisher -NotLike "Microsoft*".

A result set example:

ModelName Module IsBinary Customization Id Publisher


IsvFoundation IsvFoundation True Allow 895972027 Isv Corp

EXAMPLE 6

Get-D365Model -Name "Application*Adaptor"

Shows the list of models where the name fits the search "Application*Adaptor".

A result set example:

ModelName Module IsBinary Customization Id Publisher


ApplicationFoundationFormAd... ApplicationFoundationFormAd... False DoNotAllow 855029 Microsoft Corporation ApplicationPlatformFormAdaptor ApplicationPlatformFormAdaptor False Allow 855030 Microsoft Corporation ApplicationSuiteFormAdaptor ApplicationSuiteFormAdaptor False DoNotAllow 855028 Microsoft Corporation ApplicationWorkspacesFormAd... ApplicationWorkspacesFormAd... False DoNotAllow 855066 Microsoft Corporation

EXAMPLE 7

Get-D365Model -Module ApplicationSuite

Shows only the models that are inside the ApplicationSuite module.

A result set example:

ModelName Module IsBinary Customization Id Publisher


Electronic Reporting Applic... ApplicationSuite False DoNotAllow 855009 Microsoft Corporation Foundation ApplicationSuite False DoNotAllow 17 Microsoft Corporation SCMControls ApplicationSuite False DoNotAllow 855891 Microsoft Corporation Tax Books Application Suite... ApplicationSuite False DoNotAllow 895570102 Microsoft Corporation Tax Engine Application Suit... ApplicationSuite False DoNotAllow 8957001 Microsoft Corporation

EXAMPLE 8

Get-D365Model -Name "*Application*" -Module "*Suite*"

Shows the list of models where the name fits the search "Application" and the module name fits the search "Suite".

A result set example:

ModelName Module IsBinary Customization Id Publisher


ApplicationSuiteFormAdaptor ApplicationSuiteFormAdaptor False DoNotAllow 855028 Microsoft Corporation AtlApplicationSuite AtlApplicationSuite False DoNotAllow 895972466 Microsoft Corporation Electronic Reporting Applic... ApplicationSuite False DoNotAllow 855009 Microsoft Corporation Tax Books Application Suite... ApplicationSuite False DoNotAllow 895570102 Microsoft Corporation Tax Engine Application Suit... ApplicationSuite False DoNotAllow 8957001 Microsoft Corporation

PARAMETERS

-Name

Name of the model that you are looking for

Accepts wildcards for searching. E.g. -Name "Application*Adaptor"

Default value is "*" which will search for all models

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: *
Accept pipeline input: False
Accept wildcard characters: False

-Module

Name of the module that you want to list models from

Accepts wildcards for searchinf. E.g. -Module "Application*Adaptor"

Default value is "*" which will search across all modules

Type: String
Parameter Sets: (All)
Aliases: ModuleName

Required: False
Position: 2
Default value: *
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-CustomizableOnly

Instructs the cmdlet to filter out all models that cannot be customized

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ExcludeMicrosoftModels

Instructs the cmdlet to exclude all models that has Microsoft as the publisher from the output

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ExcludeBinaryModels

Instruct the cmdlet to exclude binary models from the output

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-BinDir

The path to the bin directory for the environment

Default path is the same as the AOS service PackagesLocalDirectory\bin

Default value is fetched from the current configuration on the machine

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: "$Script:BinDir\bin"
Accept pipeline input: False
Accept wildcard characters: False

-PackageDirectory

Path to the directory containing the installed package / module

Default path is the same as the AOS service "PackagesLocalDirectory" directory

Default value is fetched from the current configuration on the machine

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: $Script:PackageDirectory
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Tags: PackagesLocalDirectory, Servicing, Model, Models, Module, Modules

Author: Mötz Jensen (@Splaxi)

Author: Martin Dráb (@goshoom)

The cmdlet supports piping and can be used in advanced scenarios. See more on github and the wiki pages.

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️