system.kanoa.dashboard.deleteFolder
Description
Deletes a dashboard folder.Syntax
deleteFolder(dashboardId, userId)- folderId (int)
- int userId - User ID
- number of records modified (int)
- msg (string): error message, None if successful
Code Examples
# Example usage
userId = 123
folderId = 4
retVal, msg = system.kanoa.dashboard.deleteFolder(folderId, userId)
if msg: system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'Dashboard Folder has been deleted')