Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Re: Auto Mail through Work Flow when the Assigned to Field Changes

$
0
0

Looking at the image you attached to that last reply, it appears that your code for handling the change to the Status field is not contained within any subroutine.

 

Your image shows the following:

(some items truncated for brevity)

Dim strTo
Dim strSubject
Dim strComment
If Bug_Fields("BG_STATUS").IsModified then
  strTO = Bug_Fields("BG_RESPONSIBLE").Value
  strSubject = "Defect Status ..."
  strComment = "Defect Status ..."
  TDConnection.sendmail strTo, strFrom, strSubject, strComment, NULL, "HTML"
  Set TDConnection = Nothing
  Msgbox "Mail Sent"
End If


Sub Bug_AfterPost
...

 Just before the "Sub Bug_AfterPost" declaration there is no "End Sub" statement to indicate the Status code was contained in some subroutine.  That is bad.

 

So, please show all the code from the first Sub statement through the last End Sub statement that shows how you included the code for emailing both on a Status change and on an Assigned To change. Show us all the code in the scenario where it "doesn't work".


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>