New-EasitGOItemToImport
SYNOPSIS
Creates a PSCustomObject that can be added to itemToImport.
SYNTAX
1 2 |
|
DESCRIPTION
New-EasitGOItemToImport creates a new PSCustomObject with properties and arrays in such a way that the result of ConvertTo-Json -Item $myItem is formatted as needed by the Easit GO WebAPI.
The new PSCustomObject will have the following properties:
- id (generated number unique for the item/object)
- uid (generated value unique for the item/object)
- property (array)
- attachment (array)
Each property returned by $Item.psobject.properties.GetEnumerator() will be added as a PSCustomObject to the property array. If the property returned by $Item.psobject.properties.GetEnumerator() has a name equal to attachments the property will be handled as an array of objects.
EXAMPLES
EXAMPLE 1
1 2 3 |
|
id uid property attachment -- --- -------- ---------- 1 0a65061df0814d6394736303587783f7 {@{content=propertyValue1; name=property1}, @{content=propertyValue2; name=property2}} {}
PARAMETERS
-ID
ID to be set as id for item / object.
1 2 3 4 5 6 7 8 9 |
|
-Item
Item / Object to be added to itemToImport array.
1 2 3 4 5 6 7 8 9 |
|
-ProgressAction
Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by the Write-Progress cmdlet. The Write-Progress cmdlet creates progress bars that show a command's status.
The ProgressAction parameter takes one of the ActionPreference enumeration values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend, or Break.
1 2 3 4 5 6 7 8 9 |
|
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.