Skip to content
This repository was archived by the owner on Jan 29, 2022. It is now read-only.

Latest commit

 

History

History
148 lines (109 loc) · 3.36 KB

Set-CrmRelationship.md

File metadata and controls

148 lines (109 loc) · 3.36 KB
external help file Module Name online version schema
AMSoftware.Crm.PowerShell.Commands.dll-Help.xml
AMSoftware.Crm
2.0.0

Set-CrmRelationship

SYNOPSIS

Update a relationship.

SYNTAX

SetRelationshipByInputObject (Default)

Set-CrmRelationship [-InputObject] <RelationshipMetadataBase> [-PassThru] [<CommonParameters>]

SetRelationship

Set-CrmRelationship [-Name] <String> [-AdvancedFind <Boolean>] [-IsHierarchical <Boolean>]
 [-Customizable <Boolean>] [-PassThru] [<CommonParameters>]

DESCRIPTION

Update a relationship.

EXAMPLES

PARAMETERS

-AdvancedFind

Whether the relationship appears in Advanced Find.

Type: System.Boolean
Parameter Sets: SetRelationship
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Customizable

Whether the relationship is a custom relationship.

Type: System.Boolean
Parameter Sets: SetRelationship
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InputObject

The updated RelationshipMetadata for the relationship.

Type: Microsoft.Xrm.Sdk.Metadata.RelationshipMetadataBase
Parameter Sets: SetRelationshipByInputObject
Aliases: Relationship

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-IsHierarchical

Whether this relationship is the designated hierarchical self-referential relationship for this entity

Type: System.Boolean
Parameter Sets: SetRelationship
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

The SchemaName of the relationship.

Type: System.String
Parameter Sets: SetRelationship
Aliases: SchemaName

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PassThru

Returns an object that represents the RelationshipMetadata. By default, this cmdlet does not generate any output.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

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.

INPUTS

Microsoft.Xrm.Sdk.Metadata.RelationshipMetadataBase

OUTPUTS

Microsoft.Xrm.Sdk.Metadata.RelationshipMetadataBase

NOTES

RELATED LINKS

Add-CrmRelationship

Get-CrmRelationship

Set-CrmRelationshipCascadeConfig

Remove-CrmRelationship

ManyToManyRelationshipMetadata Class

OneToManyRelationshipMetadata Class