-
I'm writing a script that updates service endpoints with new namespace address and saskey.
Exception setting "saskey": "The property 'saskey' cannot be found on this object. Verify that the property exists and can be set Is there a way to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yep, you do not need to retrieve a record prior to updating. Check out
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.
|
Beta Was this translation helpful? Give feedback.
Yep, you do not need to retrieve a record prior to updating. Check out
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.