R32879 Folder – Delete If Files Exist Not Allowed
| Code | R32879 |
| Entity | General.Folders Entity |
| Name | DeleteIfFilesExistNotAllowed |
| Attribute | - |
| Layer | Back-End |
| Events | Commit |
| Record State | Deleted |
| Priority | Normal |
| Modify | NO |
| Action | if (Count(ExtensibleDataObject, where EntityItemId == current Folder) > 0)
, then check: if (Count(ObjectFiles, where ObjectId == ExtensibleDataObject.ObjectId) > 0) , then FAIL |
| Description | If a folder contains files, it cannot be deleted. |
| Message | The folder '{Name}' cannot be deleted because it contains files.
If you still want to delete the folder, first, delete the files in it, and then try again. |
| Version | Introduced: v.22 |
| Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.