public bool BackupOle() { var apps = LuisService.GetApplicationVersions(OleSettings.OleApplicationId).OrderByDescending(a => a.Version).ToList(); if (!apps.Any()) { return(false); } var export = LuisService.ExportApplicationVersion(OleSettings.OleApplicationId, apps.First().Version); if (export == null) { return(false); } Item folderItem = DataWrapper.GetDatabase(OleSettings.MasterDatabase).GetItem(OleSettings.OleSettingsFolderId); if (folderItem == null) { return(false); } DataWrapper.UpdateFields(folderItem, new Dictionary <ID, string> { { OleSettings.ApplicationBackupFieldId, JsonConvert.SerializeObject(export) } }); return(true); }