• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Vault Customization

    Reply
    Valued Contributor
    timoconnor3703
    Posts: 50
    Registered: ‎06-08-2010
    Accepted Solution

    Vault PRO 2012 - Sending email notifications

    537 Views, 9 Replies
    09-22-2011 11:15 AM
    I am sending email notification via the Change Order at state changes. I have noticed that when I do so there is a typical lag of approximately 10 minutes between when I execute the command and when the email server sees the message. If I send a test email via EDMS, the email appears nearly instantaneously. Even if I send the email via the change order first and then send a test email, the test email will arrive quickly and the change order email will arrive later. Is there an explanation for the lag in time? Can that wait time be modified? Thanks for the input. Tim
    Please use plain text.
    Valued Contributor
    ndra
    Posts: 72
    Registered: ‎11-23-2010

    Re: Vault PRO 2012 - Sending email notifications

    01-06-2012 12:58 AM in reply to: timoconnor3703

    Same problem here. My wait time is between 15-20 minutes.

     

    Any feedback?

     

    Regards

    Please use plain text.
    Valued Contributor
    timoconnor3703
    Posts: 50
    Registered: ‎06-08-2010

    Re: Vault PRO 2012 - Sending email notifications

    01-09-2012 06:29 AM in reply to: ndra

    Our wait times are still approximately 10 minutes. One of our IT staff recently mentioned that he thought it could be a problem with the header of the email - it may be flagged as a non-internal email and sent through all the external filters, which could be delaying it. If you find any answers please forward them on.

    Thanks!

    Tim O'Connor

    Please use plain text.
    Valued Contributor
    ndra
    Posts: 72
    Registered: ‎11-23-2010

    Re: Vault PRO 2012 - Sending email notifications

    01-10-2012 12:32 AM in reply to: timoconnor3703

    I just realized this is on the wrong subforum (I got here by google). Can the OP move this to the Autodesk Vault discussion group?

    Please use plain text.
    Distinguished Contributor
    amitk_189
    Posts: 168
    Registered: ‎12-15-2011

    Re: Vault PRO 2012 - Sending email notifications

    11-06-2012 02:08 AM in reply to: timoconnor3703

    How did you extract email address ???

     

     

    regards

    amit

    Please use plain text.
    Employee
    Posts: 643
    Registered: ‎12-12-2006

    Re: Vault PRO 2012 - Sending email notifications

    11-06-2012 04:28 AM in reply to: amitk_189

    The delay is deliberate.  You can change the delay by editing web.config in your server\web\services folder under ADMS install folder.  Just make sure to back up the original file before making changes.

    Inside web.config, find the part that says <add key="EcoNotificationProcessingDelay" value="0:10:0"/> and change the value.  For example, "0:1:0" will reduce the delay to 1 minute.

     

    There are a couple of reasons for the delay.  First, emails take a long time to do, so a background process takes care of that task.  That way normal server operations, like check in, are not slowed down.  Second, having a delay allows notifications to be batched together.



    Doug Redmond
    Software Engineer
    Autodesk, Inc.
    http://justonesandzeros.typepad.com/

    Please use plain text.
    Valued Contributor
    timoconnor3703
    Posts: 50
    Registered: ‎06-08-2010

    Re: Vault PRO 2012 - Sending email notifications

    11-07-2012 09:08 AM in reply to: amitk_189

    I log in briefly as an administrator and get all users and their data. Embedded there is the email addresses that are available for all authenticated users. Hope that helps.

    Please use plain text.
    Distinguished Contributor
    amitk_189
    Posts: 168
    Registered: ‎12-15-2011

    Re: Vault PRO 2012 - Sending email notifications

    11-15-2012 03:13 AM in reply to: timoconnor3703

    Can you paste your sample code on how to extract email address and user names (Pseudo code), is it possible to fetch group names as well.

    Please use plain text.
    Valued Contributor
    timoconnor3703
    Posts: 50
    Registered: ‎06-08-2010

    Re: Vault PRO 2012 - Sending email notifications

    11-15-2012 06:00 AM in reply to: amitk_189

    Because of the overhead involved with this operation I am doing it once at program launch and storing the data to be used after I switch login back to the user. To store the data, I created a class called userdata that would store all the data that I intended on using, but even that should be unnecesary.

     

    ~Login as admin user my_admnmngr

    User[] allusers = my_admnmngr.AdminService.GetAllUsers();

    foreach (User my_user in allusers)

    {

       string my_displayname = my_user.LastName + ", " + my_user.FirstName;

       userdata my_data = new userdata(my_user.FirstName, my_user.LastName, my_user.Name, my_user.Id, my_user.Email, my_displayname, my_user.IsActive);

          my_users.Add(my_user.Id, my_data);

    }

    ~Switch login back to user

     

    Hope this helps

    Please use plain text.
    Distinguished Contributor
    amitk_189
    Posts: 168
    Registered: ‎12-15-2011

    Re: Vault PRO 2012 - Sending email notifications

    11-15-2012 08:20 AM in reply to: timoconnor3703

    Awesome, Super Thanks.

    It solved my trouble, Thanks for Pseudo code timoconnor3703

     

    Regards

    Amit

    Please use plain text.