external help file | Module Name | online version | schema |
---|---|---|---|
AMSoftware.Crm.PowerShell.Commands.dll-Help.xml |
AMSoftware.Crm |
2.0.0 |
Add a relationship.
Add-CrmRelationship [-Entity1] <String> [-Entity2] <String> [-Name] <String> [-IntersectName] <String>
[-AdvancedFind <Boolean>] [-Customizable <Boolean>] [-PassThru] [<CommonParameters>]
Add-CrmRelationship [-Entity] <String> [-ToEntity] <String> [-Name] <String> -AttributeName <String>
-AttributeDisplayName <String> [-AttributeDescription <String>] [-AttributeRequired <CrmRequiredLevel>]
[-AdvancedFind <Boolean>] [-IsHierarchical <Boolean>] [-Customizable <Boolean>] [-Polymorphic] [-PassThru]
[<CommonParameters>]
Add a relationship.
Whether the relationship appears in Advanced Find.
Type: System.Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The description for the lookup attribute.
Type: System.String
Parameter Sets: AddOneToManyRelationship
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The displayname for the lookup attribute.
Type: System.String
Parameter Sets: AddOneToManyRelationship
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The LogicalName for the lookup attribute.
Type: System.String
Parameter Sets: AddOneToManyRelationship
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The data entry requirement level enforced for the lookup attribute.
Type: AMSoftware.Crm.PowerShell.Common.CrmRequiredLevel
Parameter Sets: AddOneToManyRelationship
Aliases:
Accepted values: Unknown, Required, Recommended, Optional
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Whether the entity relationship is customizable.
Type: System.Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The entity to add the one-to-many relationship for.
Type: System.String
Parameter Sets: AddOneToManyRelationship
Aliases: EntityLogicalName, LogicalName
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The entity to add the many-to-many relationship for.
Type: System.String
Parameter Sets: AddManyToManyRelationship
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The entity to add the many-to-many relationship for.
Type: System.String
Parameter Sets: AddManyToManyRelationship
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The LogicalName for the intersect entity to create.
Type: System.String
Parameter Sets: AddManyToManyRelationship
Aliases:
Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Whether this relationship is the designated hierarchical self-referential relationship for this entity
Type: System.Boolean
Parameter Sets: AddOneToManyRelationship
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The SchemaName of the relationship.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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
Create a Polymorphic (Multi-table) Lookup Attribute. Include this switch when adding Relationship to an existing Polymorpic Lookup Attribute.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: AddOneToManyRelationship
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The entity to add the one-to-many relationship to.
Type: System.String
Parameter Sets: AddOneToManyRelationship
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.