system.kanoa.dashboard.updateUserDashboard(userDashboardInfo, userId)
Updates a user dashboard
Parameters
userDashboardInfo Dictionary
| - dashboardId | Integer | |
| - isFavorite | Boolean | |
| - isPrimary | Boolean | When true, this dashboard is shown on main overview page when the user logs in |
| - userDashboardId | Integer | |
| - userId | Integer |
userId Integer
Returns
# of records modified Integer
message String None if successful
Example
userDashboardInfo = {
"userDashboardId": 12,
"dashboardId": 4,
"userId": 7,
"isPrimary": True,
"isFavorite": False
}
userId = 123
retVal, msg = system.kanoa.dashboard.updateUserDashboard(userDashboardInfo, userId)
if msg: system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'User Dashboard has been updated')