Quantcast
Viewing all articles
Browse latest Browse all 14708

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

Hi William,

 

Yes I've looked at the work flow help as you have recommended in the previous thread and read through the Admin guide and tried multiple different customized codes but still had no luck. I've changed the fields on the previous code I've posted and I was confident that it would work but somehow I still got negative result. I usually have better luck than this with working with the work flow but this one just have been hectic. Can you help? below is the code I've tried using

 

 

 

 

 

 

Sub Bug_AfterPost
  On Error Resume Next


  Dim strTo
Dim strSubject
Dim strComment

If Bug_Fields("BG_RESPONSIBLE").IsModified Then
strTO = Bug_Fields("BG_RESPONSIBLE").Value
strSubject = "Assigned to User " & BUG_Fields("BG_BUG_ID").value & " Has Changed to " & BUG_Fields("BG_RESPONSIBLE").value
strComment = "Assigned to User " & BUG_Fields("BG_BUG_ID").value & " Has Changed to " & BUG_Fields("BG_RESPONSIBLE").value
TDConnection.sendmail strTo, strFrom, strSubject, strComment, NULL, "HTML"
Set TDConnection = nothing
MsgBox "Mail Sent"
End if


  On Error GoTo 0
End Sub


Viewing all articles
Browse latest Browse all 14708

Trending Articles