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

Set-CrmContent

Synopsis

Update a record

Syntax

Set-CrmContent [-Record] <Entity> [<CommonParameters>]

Set-CrmContent [-Entity] <String> [-Id] <Guid> [-Attributes] <Hashtable> [<CommonParameters>]

Description

Update a record of an entity

Parameters

-Record <Entity>

Entity object to update

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

-Entity <String>

Logicalname of the entity to update record on

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

-Id <Guid>

Id of the record to update

Required? True
Position? 2
Default value  
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

-Attributes <Hashtable>

Attributes and values to update
Example: @{ 'firstname' = 'Arjan'; 'lastname' = 'Meskers' }

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

Update content

PS C:\> Update-CrmContent -Entity contact -Attributes @{ 'firstname' = 'Arjan'; 'lastname' = 'Meskers' }

Update a record on Contact

Related links

Entity Class https://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.entity.aspx

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