Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeProjectDependency

Module PSWriteOffice
Inputs
OfficeIMO.Project.ProjectDocument
Outputs
OfficeIMO.Project.ProjectDependency

Adds a finish-to-start relationship between two tasks.

Syntax

Add-OfficeProjectDependency -Document <ProjectDocument> [-LagDays <Decimal>] [-PassThru] -PredecessorUid <Int32> -SuccessorUid <Int32> [-Type <FinishToFinish|FinishToStart|StartToFinish|StartToStart>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Adds a finish-to-start relationship between two tasks.

$project | Add-OfficeProjectDependency -PredecessorUid 1 -SuccessorUid 2

Parameters

-Document ProjectDocument requiredpipeline: True (ByValue)
Project to inspect or change.
-LagDays Decimal optional
Working-day delay; negative values represent lead time.
-PassThru SwitchParameter optional
Return the created or changed object.
-PredecessorUid Int32 required
Predecessor task UID.
-SuccessorUid Int32 required
Successor task UID.
-Type ProjectDependencyType optional
Dependency relationship.
Possible values: FinishToFinish, FinishToStart, StartToFinish, StartToStart

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.