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


Save-Resource not reloading or updating ObjectID after Create


Save-Resource is not reloading or updating ObjectID after Create.

There is code for reloading the properties in SaveResources.cs, but since ModificationType is changed to Update after it's never processed in the ReloadProperties loop.

Proposed fix, add ToList() on row 24 in SaveResources.cs

List<RmaObject> creatingObjects = this.Resources.Where(t => t.InternalObject.ModificationType == OperationType.Create).ToList();
Closed Jan 11, 2016 at 8:17 PM by ryannewington


ryannewington wrote Sep 29, 2015 at 8:17 PM

Thanks for reporting this. I've updated the binaries to 1.0.5751 and checked in changeset bb39ee6fc161 with the fix in it.