Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Raising an email macro

Status
Not open for further replies.

TudorSmith

Programmer
Jan 14, 2002
245
GB
I currently have macros which are successfully emailing people based on the state of a job ticket.

For instance I have:
Code:
total.pages in $L.new=1 and assignment in $L.new="XYZ"

This works a treat for new tickets but here's my latest problem. We have now added a new field to a ticket called Reassignment (bet you can't guess what that's for?). Yep, if a ticket already exists, and is reassigned to a new group, I would like for a macro to send an email to the new group to notify them that they are now responsible for the ticket.

I'm thinking this is acheived like this:

Code:
total.pages in $L.new>1 and Reassignment in $L.new="XYW"

But I'm not sure, because the ticket is no longer a new ticket.

Can anyone suggest how I identify the ticket as "Not a new" ticket and what is the
Code:
total.pages
telling me?

Thanks

birklea birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
 
total.pages will tell you the number of updates.

What I've done to notify on reassignment is this:

Created a field called send.email
In formatcontrol, set send.email to false on display
In formatcontrol, set send.email to true if the assignment group has changed (in formatcontrol, you can use $file0 like $L.old to do comparisons)
Use a macro to send the message if send.email is true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top