external help file | Module Name | online version | schema |
---|---|---|---|
AMSoftware.Crm.PowerShell.Commands.dll-Help.xml |
AMSoftware.Crm |
2.0.0 |
Add a data record to an entity.
Add-CrmContent [-InputObject] <Entity> [-PassThru] [-AsBatch] [-Upsert] [<CommonParameters>]
Add-CrmContent [-Entity] <String> [[-Id] <Guid>] [-Attributes] <Hashtable> [-PassThru] [-AsBatch] [-Upsert]
[<CommonParameters>]
Add a data record to an entity.
PS C:\> Add-CrmContent -Entity account -Attributes @{accountnumber='123456';'accountname'='AMSoftware'}
Add an record to account.
Execute the request as part of a batch (ExecuteMultiple or ExecuteTransaction). See Start-CrmBatch, Stop-CrmBatch and Submit-CrmBatch.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A hashtable containing to attribute LogicalNames and values of the record.
Type: System.Collections.Hashtable
Parameter Sets: AddContent
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The LogicalName of the entity to add the record to.
Type: System.String
Parameter Sets: AddContent
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The unique id of the new record.
Type: System.Guid
Parameter Sets: AddContent
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
An entity object containing the attributes and values of the record.
Type: Microsoft.Xrm.Sdk.Entity
Parameter Sets: AddContentByInputObject
Aliases: Record
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Returns an object that represents the new record. 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
Try Upsert instead of Create of the record.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
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.