Get D365PackageLabelResources - FH-Inway/d365fo.tools GitHub Wiki
Get label from the resource file
Get-D365PackageLabelResources -FilePath <String> [-Name <String>] [-Value <String>] [-IncludePath]
[<CommonParameters>]
Get-D365PackageLabelResources -FilePath <String> [-Name <String>] [-Value <String>] [-IncludePath]
[<CommonParameters>]
Get label details from the resource file for a Dynamics 365 Finance & Operations environment
Get-D365PackageLabelResources -Path "C:\AOSService\PackagesLocalDirectory\ApplicationSuite\Resources\en-US\PRO.resources.dll"
Will get all labels from the "PRO.resouce.dll" file
The language is determined by the path to the resource file and nothing else
Get-D365PackageLabelResources -Path "C:\AOSService\PackagesLocalDirectory\ApplicationSuite\Resources\en-US\PRO.resources.dll" -Name "@PRO505"
Will get the label with the name "@PRO505" from the "PRO.resouce.dll" file
The language is determined by the path to the resource file and nothing else
Get-D365PackageLabelResources -Path "C:\AOSService\PackagesLocalDirectory\ApplicationSuite\Resources\en-US\PRO.resources.dll" -Value "*qty*"
Will get all the labels where the value fits the search "qty" from the "PRO.resouce.dll" file
The language is determined by the path to the resource file and nothing else
Get-D365InstalledPackage -Name "ApplicationSuite" | Get-D365PackageLabelResourceFile -Language "da" | Get-D365PackageLabelResources -value "*batch*" -IncludePath
Will get all the labels, across all label files, for the "ApplicationSuite", where the language is "da" and where the label value fits the search "batch".
The path to the label file is included in the output.
The path to resource file that you want to get label details from
Type: String
Parameter Sets: Default
Aliases: Path
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Type: String
Parameter Sets: Specific
Aliases: Path
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Name of the label you are looking for
Accepts wildcards for searching. E.g. -Name "@PRO*"
Default value is "*" which will search for all labels in the resource file
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: *
Accept pipeline input: False
Accept wildcard characters: False
Value of the label you are looking for
Accepts wildcards for searching. E.g. -Name "Qty"
Default value is "*" which will search for all values in the resource file
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: *
Accept pipeline input: False
Accept wildcard characters: False
Switch to indicate whether you want the result set to include the path to the resource file or not
Default is OFF - path details will not be part of the output
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.
Tags: PackagesLocalDirectory, Label, Labels, Language, Development, Servicing, Resource, Resources
Author: Mötz Jensen (@Splaxi)
There are several advanced scenarios for this cmdlet. See more on github and the wiki pages.