< Back

Get-GlpiToolsDropdownsDocumentTypes

Mon Jan 13, 2020 9:30 pm

NAME Get-GlpiToolsDropdownsDocumentTypes



SYNOPSIS

Function is getting Document types informations from GLPI





SYNTAX

Get-GlpiToolsDropdownsDocumentTypes [-All] [<CommonParameters>]



Get-GlpiToolsDropdownsDocumentTypes -DocumentTypeId <String[]> [-Raw] [<CommonParameters>]



Get-GlpiToolsDropdownsDocumentTypes -DocumentTypeName <String> [<CommonParameters>]





DESCRIPTION

Function is based on DocumentTypeId which you can find in GLPI website

Returns object with property's of Document types





PARAMETERS

-All [<SwitchParameter>]

This parameter will return all Document types from GLPI



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-DocumentTypeId <String[]>

This parameter can take pipeline input, either, you can use this function with -DocumentTypeId keyword.

Provide to this param DocumentTypeId from GLPI Document types Bookmark



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Raw [<SwitchParameter>]

Parameter which you can use with DocumentTypeId Parameter.

DocumentTypeId has converted parameters from default, parameter Raw allows not convert this parameters.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-DocumentTypeName <String>

This parameter can take pipeline input, either, you can use this function with -DocumentTypeId keyword.

Provide to this param Document types Name from GLPI Document types Bookmark



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Document types ID which you can find in GLPI, or use this Function to convert ID returned from other Functions





OUTPUTS

Function returns PSCustomObject with property's of Document types from GLPI





NOTES





PSP 09/2019



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-GlpiToolsDropdownsDocumentTypes -All



Example will return all Document types from Glpi









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>326 | Get-GlpiToolsDropdownsDocumentTypes



Function gets DocumentTypeId from GLPI from pipeline, and return Document types object









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>326, 321 | Get-GlpiToolsDropdownsDocumentTypes



Function gets DocumentTypeId from GLPI from pipeline (u can pass many ID's like that), and return Document types

object









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Get-GlpiToolsDropdownsDocumentTypes -DocumentTypeId 326



Function gets DocumentTypeId from GLPI which is provided through -DocumentTypeId after Function type, and return

Document types object









-------------------------- EXAMPLE 5 --------------------------



PS C:\\>Get-GlpiToolsDropdownsDocumentTypes -DocumentTypeId 326, 321



Function gets Document types Id from GLPI which is provided through -DocumentTypeId keyword after Function type (u

can provide many ID's like that), and return Document types object









-------------------------- EXAMPLE 6 --------------------------



PS C:\\>Get-GlpiToolsDropdownsDocumentTypes -DocumentTypeName Fusion



Example will return glpi Document types, but what is the most important, Document types will be shown exactly as

you see in glpi dropdown Document types.

If you want to add parameter, you have to modify "default items to show". This is the "key/tool" icon near search.











RELATED LINKS