Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

ConvertTo-OfficeProjectTable

Module
PSWriteOffice
Inputs
System.Management.Automation.PSObject[]
Outputs
OfficeIMO.Project.ProjectMappedTable

Maps PowerShell rows to a bounded project entity table.

Syntax

ConvertTo-OfficeProjectTable
-ColumnMap <IDictionary>
-InputObject <PSObject[]>
-Kind <Tasks|Resources|Assignments|Calendars>
[-MaxRows <Int32>]
[<CommonParameters>]
#
Parameter set: InputObject

Examples

Maps PowerShell rows to a bounded project entity table.

Import-Csv ./tasks.csv | ConvertTo-OfficeProjectTable -Kind Tasks -ColumnMap @{ Uid = 'ID'; Name = 'Task' }

Parameters

-ColumnMap IDictionary required
Project field name to source column header. Field names are discovered through ProjectDataField.
-InputObject PSObject[] requiredpipeline: True (ByValue)
Rows from Import-Csv, dictionaries or PowerShell objects.
-Kind ProjectDataKind required
Entity collection represented by the rows.
Possible values: Tasks, Resources, Assignments, Calendars
-MaxRows Int32 optional
Maximum accumulated rows.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.