Skip to content

Is there a way to update a attribute without first retreiving it? #517

Answered by seanmcne
Millberg asked this question in Q&A
Discussion options

You must be logged in to vote

Yep, you do not need to retrieve a record prior to updating. Check out

get-help set-crmrecord -examples

PowerShell will output all of the examples we have included in the module documentation. Examples 1 and 3 will apply here, I'd recommend following the first as you provide the attribute names and values (to avoid confusion). You could also take the collection you have an add a property to it with the desired value to insert it into the record but usually if I already know the values I'll follow the first example and provide the field names and values.

get-help set-crmrecord -examples

NAME
    Set-CrmRecord

SYNOPSIS
    Updates a new CRM record by specifying EntityLogicalName, record'…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by seanmcne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants