This project has moved. For the latest updates, please go here.

Remove-CrmRelationship

Synopsis

Remove Relationship

Syntax

Remove-CrmRelationship [-Name] <String> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Remove-CrmRelationship [-Entity] <String> [-FromEntity] <String> [-Attribute <String>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Removes a relationship from the organization

Parameters

-Name <String>

Schemaname of the relationship to remove

Required? True
Position? 1
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Force <SwitchParameter>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-WhatIf <SwitchParameter>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Confirm <SwitchParameter>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Entity <String>

Logicalname of one of the entities of the relationship to remove

Required? True
Position? 1
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-FromEntity <String>

Logicalname of one of the entities of the relationship to remove

Required? True
Position? 2
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Attribute <String>

Attribute logicalname to use as hint to locate relationship, if multiple exist.
If no hint is provided and multiple relationships exists a many-to-many relationship is assumed.

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, InformationAction, InformationVariable,
WarningAction, WarningVariable, OutBuffer, PipelineVariable and OutVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

Outputs

Notes

This operation cannot be undone.

Examples

Remove relationship

PS C:\> Remove-CrmRelationship -Entity account -FromEntity contact -Attribute parentaccountid

Removes the relationship between Account and Contact

Related links

Last edited Mar 11 at 7:02 PM by amsoftware, version 2