I am trying to set "Default outgoing email format" user property under System --> User Default Settings.
When I changes the setting and click "Apply" to apply it to all the existing users. I am thrown the following warning message.
Are you sure you would like to change all users who currently receive 'text'
email to receive 'html' email instead? A total of 98 users will be affected.
Note that this change cannot be undone, and should only be performed if you
really know what you are doing.
We have around 1000 active users.
I ran the following query to display all the users with the property 'user.notifications.mimetype' set and it returned only 121 rows.
SELECT au.user_key, pe.property_key, pe.propertytype, ps.propertyvalue
FROM app_user au
JOIN propertyentry pe ON au.ID = pe.entity_id
JOIN propertystring ps ON pe.ID = ps.ID
where pe.property_key like '%user.notifications.mimetype%'
AND pe.ENTITY_NAME='ApplicationUser';
121 row(s) returned.
Out of the 121 rows returned, 23 are set to value 'html' and 98 are set to value 'text', which is matching the number displayed in the warning message. What about the rest of the users and why are they not listed with any of the queries?
SELECT au.user_key, pe.property_key, pe.propertytype, ps.propertyvalue
FROM app_user au
JOIN propertyentry pe ON au.ID = pe.entity_id
JOIN propertystring ps ON pe.ID = ps.ID
where pe.property_key like '%user.notifications.mimetype%'
AND pe.ENTITY_NAME='ApplicationUser' AND ps.propertyvalue = 'html';
23 row(s) returned
SELECT au.user_key, pe.property_key, pe.propertytype, ps.propertyvalue
FROM app_user au
JOIN propertyentry pe ON au.ID = pe.entity_id
JOIN propertystring ps ON pe.ID = ps.ID
where pe.property_key like '%user.notifications.mimetype%'
AND pe.ENTITY_NAME='ApplicationUser' AND ps.propertyvalue = 'text';
98 row(s) returned
Appreciate your time and response.