Vault Customization

Vault Customization

Reply
Valued Contributor
timoconnor3703
Posts: 50
Registered: ‎06-08-2010
Message 1 of 10 (1,400 Views)
Accepted Solution

Vault PRO 2012 - Sending email notifications

1400 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

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.

Valued Contributor
ndra
Posts: 79
Registered: ‎11-23-2010
Message 2 of 10 (1,323 Views)

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

Valued Contributor
timoconnor3703
Posts: 50
Registered: ‎06-08-2010
Message 3 of 10 (1,315 Views)

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

Valued Contributor
ndra
Posts: 79
Registered: ‎11-23-2010
Message 4 of 10 (1,304 Views)

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?

Mentor
amitk_189
Posts: 242
Registered: ‎12-15-2011
Message 5 of 10 (1,144 Views)

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

Employee
Redmond.D
Posts: 814
Registered: ‎12-12-2006
Message 6 of 10 (1,138 Views)

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/

Valued Contributor
timoconnor3703
Posts: 50
Registered: ‎06-08-2010
Message 7 of 10 (1,117 Views)

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.

Mentor
amitk_189
Posts: 242
Registered: ‎12-15-2011
Message 8 of 10 (1,094 Views)

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.

Valued Contributor
timoconnor3703
Posts: 50
Registered: ‎06-08-2010
Message 9 of 10 (1,080 Views)

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

Mentor
amitk_189
Posts: 242
Registered: ‎12-15-2011
Message 10 of 10 (1,075 Views)

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.