Open EthernetIp opened 7 years ago
Folder newFolder = new Folder(); newFolder.Name = "somename"; //newFolder.ExpirationDate = DateTime.UtcNow.AddDays(10); newFolder=sfClient.Items.CreateFolder(parentUri, newFolder).Execute();
The above set nothing
Try 2 Folder newFolder = new Folder(); newFolder.Name = newFolderName; newFolder=sfClient.Items.CreateFolder(parentUri, newFolder).Execute();
newFolder.ExpirationDate = DateTime.UtcNow.AddDays(19); sfClient.Items.Update(newFolder.url, newFolder).Execute();
Works, but why cant this be done at creation ?
Folder newFolder = new Folder(); newFolder.Name = "somename"; //newFolder.ExpirationDate = DateTime.UtcNow.AddDays(10); newFolder=sfClient.Items.CreateFolder(parentUri, newFolder).Execute();
The above set nothing
Try 2 Folder newFolder = new Folder(); newFolder.Name = newFolderName; newFolder=sfClient.Items.CreateFolder(parentUri, newFolder).Execute();
newFolder.ExpirationDate = DateTime.UtcNow.AddDays(19); sfClient.Items.Update(newFolder.url, newFolder).Execute();
Works, but why cant this be done at creation ?