Editing Automated Email Installation

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 91: Line 91:
  
 
<nowiki>
 
<nowiki>
(case when a.BillingStatUID = 'void' then 'Order VOID'
+
'[' + cast(a.OrderNumber as varchar(20)) + '] for : ' + a.CustName  as Subject, a.CustName + '<br>' +isnull(a.AddressBlock, '') + '<br>' +'Company Name Service Order ' + cast(a.DateTimeIn as varchar(100)) + '     has been ' +isnull( a.OrderStatus,'') + '.' + '<br><br>' +  
            else (case when isnull(a.OrderStatus, '') = '' then 'Order Open'
+
'Priority Level:'   +isnull(cast(a.Priority as varchar(20)),'') + '<br><br>' + 'Summary:' +isnull(a.Summary, 'Summary') + '<br><br>' +
                        else '' + '' end) end) + ' [' +isnull(cast(a.OrderNumber as varchar(100)), '') + ']
+
'Contract type:'   +isnull(a.SLACategory, 'FSMA or E&L')+ '<br><br>' + 'Order number : '+isnull(cast(a.RefNum as varchar(20)),'') +'   Technician assigned: ' + isnull(a.AssignedTo, 'Nobody') + '.'  + '<br><br>' +'Site contact: ' + b.Name + ' ' + isnull(b.Email, '') + '<br><br>' +'Services Requested: ' + '<br>' + isnull(a.ServReq,''+ '<br>' +'change order status on arrival & leaving job; + ADD A TIME TICKET WITH NOTE: ' + '<br>' + isnull(a.ServPerf,'')   + '<br><br>' as Summary
                        +': '+ a.CustName + ' - Status Updated By: '+(Select Name From SMPUser Where UserName = a.WhoEdit)
 
                        as Subject, +
 
                       
 
+ '<br/><font size="2" face="verdana" color="black">'  
 
+ '<br/>' +
 
+ '<br/> <strong>' +'Customer: '+  a.BillName + '</strong><br/>'
 
+ '<br/>' +
 
+ '<br/>' +'Site Address: '+ '<br/>' +a.CustName
 
+ '<br/>' + a.Address1+', '
 
+ '<br/>' +''+ a.City + ', ' + a.St+' ' +a.Zip
 
+ '<br/>' +
 
+ '<br/>' +'Site Phone : ' + (Select distinct isnull(a.fPhone, '') From CustCont b Where a.contactuid = b.uid)
 
+ '<br/>' +'Contact: '+ (Select distinct b.Name From CustCont b Where b.UID = a.Contactuid) +
 
+ '<br/>' +'Email : ' + (Select distinct isnull(b.Email, '') From CustCont b Where a.contactuid = b.uid)
 
+ '<br/>' +
 
+ '<br/>' +'Service Order Number: ' +'<strong>'+          coalesce(convert(varchar, a.Ordernumber), '')+'</strong>'
 
+ '<br/>'
 
+ '<br/>' + 'Order Summary: ' + a.Summary+ ' '+
 
+ '<br/>' + 'Taken By:  ' + a.TakenBy+ ' '+
 
+ '<br/>' + 'Open Date/Time: ' +isnull(cast(a.DateTimeIn as varchar(100)),'') +
 
+ '<br/>' + 'Date/Time Due: ' +isnull(cast(a.DateTimeDue as varchar(100)),'') +
 
+ '<br/>' + 'Order Status:   ' + a.OrderStatus+ ' '+
 
+ '<br/>' + 'Close Date/Time:' +isnull(cast(a.DateTimeClosed as varchar(100)),'') +
 
+ '<br/>' + 'SLA Category: ' + a.SLACategory+ ' '+
 
+ '<br/>' + 'Refrence Number: ' + a.RefNum+ ' '+
 
+ '<br/>' + 'Tech Assigned:  ' + a.AssignedTo+ ' '+
 
+ '<br/><strong>'+'Services Requested:' + '<strong>'
 
+ '<br/>' +isnull(a.ServReq,'')  
 
+ '<br/>'
 
+'<div align="center"> <span style="font-size:smaller;"></span></div></font>'
 
as Summary
 
 
</nowiki>
 
</nowiki>

Please note that all contributions to High5Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see High5Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)