ALM – After customizing the subject for MANUAL messages sent to Assigned To in Defects module, notification is sent twice
Question ID: 106912
0
0

I have written a custom Sub to customize the subject used when a user clicks on the button to manually email a defect to the Assigned To user. I’m calling the Sub from ActionCanExecute & the function is triggered based on the act_Mail_Send action. I’ve tried multiple permutations, but two emails are always sent. One email uses the custom subject & one uses the non-customized subject. Does anyone know how I can prevent ALM from sending both messages? I’m using version 11.52.

**Note**: This is regarding manual messages, **not** Automail.

Marked as spam
Posted by (Questions: 1, Answers: 6)
Asked on June 21, 2016 1:12 pm
47 views
Answers (1)
0
Private answer

@almadmin

It sounds like your custom script and the original action are both running on the action act_Mail_Send trigger. You can disable the original built in action by setting ActionCanExecute = False after your custom script runs. You may also take advantage of ''Exit Function'' in your If statement to keep from triggering additional ActionCanExecute script that appears after your if statement.

Example:

If ActionName = ''act_Mail_Send'' Then
'Script to send email
ActionCanExecute = False
Exit Function
End If

ActionCanExecute = True

Marked as spam
Posted by (Questions: 3, Answers: 168)
Answered on September 23, 2016 3:00 am
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top