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

Split-CrmContent

Synopsis

Disassociate two records

Syntax

Split-CrmContent [-Entity] <String> [-Id] <Guid> [-FromEntity] <String> [-FromId] <Guid> [-Attribute <String>] [<CommonParameters>]

Description

Disassociate two records using a one-to-many or many-to-many relationship

Parameters

-Entity <String>

Entity logicalname of the record to disassociate

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

-Id <Guid>

Id of the record to disassociate

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

-FromEntity <String>

Entity logicalname of the record to disassociate from

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

-FromId <Guid>

Id of the record to disassociate from

Required? True
Position? 4
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

Examples

Split two records

PS C:\> Split-CrmContent -Entity contact -Id CD51649C-71E0-45AA-BB4B-FE8E52E4E671 -FromEntity account -FromId 1A07D9B6-21D1-426A-9B41-488AF9FB6C75

Disassociate the Contact from the Account. The result will be the field parentaccountid on the contact is cleared.

Related links

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