dwalby Posted November 28, 2018 Share Posted November 28, 2018 Hi all, Is it possible to create a widget which shows the current number of new e-mails awaiting to be raised as requests? i.e. a count of the number of e-mails in the inbox? Thanks in advance Link to comment Share on other sites More sharing options...
Victor Posted November 29, 2018 Share Posted November 29, 2018 On 11/28/2018 at 8:20 AM, dwalby said: a count of the number of e-mails in the inbox? What exactly will it count? all? unread? Link to comment Share on other sites More sharing options...
dwalby Posted November 29, 2018 Author Share Posted November 29, 2018 @Victor sorry, all e-mails ideally, from the Inbox only. Link to comment Share on other sites More sharing options...
Victor Posted November 29, 2018 Share Posted November 29, 2018 @dwalby - ok. First, we need to find out the folder ID for the "inbox". When you navigate to Inbox in the email view, have a look at the URL in the address bar. In there it should be something like "folder= <number>". We need that number. Once we have the number then a widget to count emails in Inbox should be quite simple. Have the widget configured to use a custom SQL and the query would be: SELECT COUNT(*) AS "Your Desired Column Name" FROM h_msg_messages WHERE h_folder_id = <number> 1 Link to comment Share on other sites More sharing options...
dwalby Posted November 29, 2018 Author Share Posted November 29, 2018 @Victor - Awesome this worked Thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now