Submit Your Suggestions for Vista

Ideaspace topics with the most votes have been moved into the Suggestion Box. If there is a topic missing, please re-enter. Our product team reviews the Suggestion Box items regularly and will provide updates as to status and incorporation into upcoming releases.

Send e-mail anouncements to all active employees

The SMTP service account we use to send e-mail from viewpoint works so well with Payroll.  We'd like the ability to e-mail the entire company from viewpoint outside of the payroll module.  To possibly send announcements and so forth.  As we have a lot of turn over in construction, some of our employees do not get an internal e-mail address.  So it becomes a task to maintain an address book for notifying active employees.  We already have the master list on who's an active employee in Viewpoint. 

  • Guest
  • Dec 20 2018
Company Whitaker Construction
Job Title / Role I/T Director
I need it... 6 months
  • Attach files
  • Nathan Sutherland commented
    December 20, 2018 18:22

    Here's some code for the SSRS report:

     

    DECLARE @list varchar(max)

    Select @list = COALESCE(@list+';','')+Email from bPREH WHERE PRCo=@PRCo AND ActiveYN='Y'

    SELECT @list AS [Emails]

     

    Have fun!

     

  • Nathan Sutherland commented
    December 20, 2018 18:10

    I suggest a very simple SSRS report, if the people doing the emailing have OUTLOOK or some other email program on their computer:

    1. Create SSRS report that pulls email addresses for only active employees.
    2. In the report, create a MAILTO link with the following added together:
      1. mailto:noreply@yourcompany.com?bcc=
      2. employeeOne@co.com;
      3. employeeTwo@co.com;...etc
    3. Then whenever you want to email everyone, open the report and tap the link. That will put all the BCC addresses into the BCC field of a new email from your email program, and the user can then type out whatever subject and message they want before hitting SEND.
    4. For help creating the list of email addresses,
      1. Do it in the SQL: I use GROUP_CONCAT functions found here: https://archive.codeplex.com/?p=groupconcat. (Either that or use COALESCE or ugly XML techniques). SQL Server 2017+ have the STRING_AGG() function that can be used. OR
      2. Do it in the REPORT: https://shakanand.wordpress.com/2012/07/05/ssrs-concatenating-value-from-detail-rows-into-a-single-value/

    If you are trying to use the SMTP server already defined and in use within Viewpoint, you could use something like a WF Notifier Job to do the same thing (not tested):

    1.  Create a UD table to store the messages. Example: "PR Company Messages"
      1. Fields needed: Seq, Subject, ReplyTo, Body
    2. Create a WF Notifier Query to 
      1. Grab CONCATED list of all active employee emails (see above section on doing it in SQL)
      2. Grab rows from the PR Company Messages table
      3. Setup as "Event" query/job, with "key field" being Seq
    3. Create a WF Notifier Job to use that query, sending an email to the CONCATED list of emails. Make it run once a day or so. It should only fire off when it detects a new row in the PR Company Messages table.
    4. The Job should also be set with a valid REPLY-TO address.

    Personally I'd rather use the SSRS report method as it requires a lot less setup and maintenance. The only advantage I can really see of the 2nd method is VP keeps a log of all the messages it sends, so anyone could check VA MESSAGE ARCHIVE to see if the messages were sent. Otherwise it's up to the sender to keep a copy in their SENT folder in their client.

     

Dear Viewpoint Suggestion Box contributor;

We at Viewpoint sincerely thank you for your contribution to Suggestion Box on how we can improve Viewpoint products. While we can’t do everything at once, we rely upon your feedback to help guide the prioritization of our product improvements, and Suggestion Box is a critical tool for us to understand and prioritize our customers’ needs. Viewpoint reviews Suggestion Box regularly for all of our products and updates statuses, adds comments, and performs various house-keeping (including deleting) as needed to ensure that Suggestion Box is maintained as a productive environment for product enhancements requests.

1515 SE Water Avenue, Suite 300, Portland, OR 97214 |  800.333.3197  | Contact Us | Terms of Use | Privacy | Support Policies

© 2023 Trimble Inc. All Rights Reserved. Viewpoint®, Vista™, Spectrum®, ProContractor™, Jobpac Connect™, Viewpoint Team™, Viewpoint Analytics™, Viewpoint Field View™, Viewpoint Estimating™, Viewpoint For Projects™, Viewpoint HR Management™, Viewpoint Field Management™, Viewpoint Financial Controls™, Vista Field Service™, Spectrum Service Tech™, ViewpointOne™, ProjectSight® and Trimble Construction One™ are trademarks or registered trademarks of Trimble Inc. or its affiliates in the United States and other countries. Other names and brands may be claimed as the property of others.