system.kanoa.dashboard.updateUserDashboardField
Description
Updates the field with the passed value for the userDashboardIdSyntax
updateUserDashboardField(userDashboardId, field, value, userId)- serDashboardId (int)
- field (str): Name of the column to change
- value (object): new value for this field
- userId (int): used for the createdBy field
- retVal (int): # of records modified
- msg (string): error message, None if successful
Code Examples
# Example usage
retVal, msg = system.kanoa.dashboard.updateUserDashboardField(7, 'isDefault', True, userId)
if msg: system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'User Dashboard field has been updated')