Home    Forums    Feature Requests    Beta Issues    SysAid Resources    Documentation    Support
Hello Guest,  Login   
        
DOWNLOAD FREE EDITION
    
     Recent Topics    Hottest Topics    Online Members    Member Listing    Advanced Search
Variables ${...} in email notifications  XML
Forum Index » SysAid Integration
 
Author Message
Keith
SysAider

SysAider from release 5.5 Netherlands
Joined: 08/10/2008
Messages: 1
Location: Eindhoven Netherlands
Offline

I don't seem to be able to find a list of variables that can be used in email notifications. Furthermore the ${RequestUser}, ${SubmitUser} and ${ModifyUser} do't seem to work in an email body to a new user.
Does anyone have any ideas?

This message was edited 1 time. Last update was at 24/10/2008 09:11:50


Regards,

Keith
techguy
SysAid Mod


SysAider from release 4 United Kingdom Pathfinder Meet me in Vegas - SysAid technology Conference - 28-30/4/2010
Joined: 11/06/2008
Messages: 1506
Location: England
Offline

see here: http://www.ilient.com/Sysforums/posts/list/213.page#389

Need help? Try the SysAid wiki first! - http://sites.google.com/site/sysaidwiki
wbeers
SysAider

SysAider from release 5.5 United States
Joined: 28/07/2008
Messages: 20
Offline

Is there a way to use custom text fields in the email? We just recently started using direct dial extensions for all branches and added it per http://www.ilient.com/Sysforums/posts/list/251.page

I'm using Custom Text 1 as our Extension field, and have edited my forms to display it just like I want it. However, I can't find a field that lets me included it in email notifications. Can I create my own, if it's not there?
CCSO IT
Super SysAider


SysAider from release 5.1 United States SysAid Certified
Joined: 05/09/2008
Messages: 54
Offline

Was there ever a solution to this? I really want my SRWorkTime.cust_notes field to display in the email

Thanks,
Thomas Hardin
Microcomputer Specialist
Clackamas County Sheriff's Office
Haim
SysAid Wiz

Joined: 15/04/2008
Messages: 2449
Offline

Hello CCSO IT,

Below you can find the complete list of fields that can be used in the email notification.
Unfortunately, the SRWorkTime.cust_notes field is not a part of the current variables you can use, but you are welcome to request it in the feature requests forum so it can be added to a future version of SysAid.

$Title - Shows the service request title
$ModifyUser - Shows who was the last user to modify the service request
$Computer - Shows the computer that is associated with the service request
$ParentID - Shows the service request number of the parent request
$Category - Shows the service request category
$SubCategory - Shows the service request sub-category
$ThirdLevelCategory - Shows the service request third-level-category
$AssignedTo - Shows the full name of the assigned administrator
$CloseTime - Shows the time the service request got closed
$Description - Shows the service request description
$DueDate - Shows the service request due date
$ID - Shows the service request ID
$RequestUser - Shows the full name of the user who requested the service request
$SubmitTime - Shows when the service request got submitted
$Notes - Shows the service request notes
$Priority - Shows the service request priority
$Urgency - Shows the service request urgency
$Status - Shows the service request status
$Resolution - Shows the service request resolution
$Solution - Shows the service request solution
$SubmitUser - Shows the full name of the user who submitted the service request
$AssignedGroup - Shows the administrator group that is assigned to the service request
$ModifyTime - Shows the time the service request last changed
$Location - Shows the service request location
$LinkToSR - Creates a link to the service request - suitable for admins only
$Company - Shows the company name that is associated with the request user
$Phone - Shows the request user's telephone number
$Cellphone - Shows the request user's cellphone number
$SMS - Shows the request user's SMS number
$CompanyPhone - Shows the phone number that is set on the request user's company
$CompanyAddress - Shows the email address that is set on the request user's company
$sr.custText1 - Shows the service request custom text 1
$sr.custText2 - Shows the service request custom text 2
$sr.custInt1 - Shows the service request custom integer 1
$sr.custInt2 - Shows the service request custom integer 2
$custList1 - Shows the service request custom list 1
$custList2 - Shows the service request custom list 1
$LinkToAttachments - Creates links to download the files attached to the service request


Boolean variables for using in customized notifications
$IsNewSr - Returns True if this is a new service request
$isClosedSR - Returns True if this is a closed service request
$isAfterHours - Returns True if the notification is sent outside of the operating hours

Best regards.
Haim

Pushing IT forward
joel
SysAider

SysAider from release 5.6 United States
Joined: 14/04/2009
Messages: 20
Offline

Hi,

Following up on this thread - do the variables $RequestUser and $SubmitUser actually show the full name or do they show the user name?
If user name, then are there any variables for displaying the first and/or last name of the requesting or submitting user?
(Would be nice to personalize the email a bit by including their name.) Can this be added as a custom variable?

Thanks,
Joel


Haim
SysAid Wiz

Joined: 15/04/2008
Messages: 2449
Offline

Hey Joel.

To show the first name of the request user, please use the ${firstName} variable, for last name use ${lastName}.

The request user variable is showing the user name only by default.
You can change it at preferences > customize > appearance under " User name display method"

Best regards.
Haim

Pushing IT forward
joel
SysAider

SysAider from release 5.6 United States
Joined: 14/04/2009
Messages: 20
Offline

Thanks, Haim.
For some reason, when I use ${firstName} in an email body, it displays literally as ${firstName}.

Changing the "User name display method" worked, though it'd be nice to just show the first name.
Any ideas on why I get the literal string and not the variable value?

Thanks.

Haim
SysAid Wiz

Joined: 15/04/2008
Messages: 2449
Offline

Hey joel,

Which SysAid version are you using?
On which notification template are you trying to use that variable?


Pushing IT forward
DanDevoe
SysAider

SysAider from release 6 United States
Joined: 28/04/2009
Messages: 18
Offline

I'm having the same problem with {$firstname} showing {$firstname}.

SysAid 6.0.0.4

Thanks
Haim
SysAid Wiz

Joined: 15/04/2008
Messages: 2449
Offline

Hey guys.

I checked it again, and verified that the first and last name variables only available in the "email body to a new end user/administrator" templates.

For the "email body to end user regarding a service request" template, please use the $RequestUser tag.

Best regards.
Haim

This message was edited 1 time. Last update was at 04/05/2009 11:14:04


Pushing IT forward
techguy
SysAid Mod


SysAider from release 4 United Kingdom Pathfinder Meet me in Vegas - SysAid technology Conference - 28-30/4/2010
Joined: 11/06/2008
Messages: 1506
Location: England
Offline

This is a bit inconsistent, the same variables should be available in all templates.

I have added it this feature request regarding email variables, vote here :- http://www.ilient.com/Sysforums/posts/list/0/136.page#9457

Need help? Try the SysAid wiki first! - http://sites.google.com/site/sysaidwiki
Haim
SysAid Wiz

Joined: 15/04/2008
Messages: 2449
Offline

hey techguy.

I thought so myself, but look at it that way.
Some of the variables only fit the emails regarding the service request (request user, title, ect'), what information can be added to those fields in emails to new user, or the "remember password" email?

That's why there are differences, so this is not an issue (although i have petitioned the dev team to add the first and last name variables to all the notifications.)

Best regards.
Haim

Pushing IT forward
fmachado
SysAider


SysAider from release 6 Brazil Pathfinder
Joined: 14/10/2009
Messages: 30
Offline

You can simply use the code below at the message body:

#set($name = ${RequestUser})
#set($firstname = $name.substring(0,$name.lastIndexOf(' ')))
Dear $firstname,
--text---

If you wish, $name.lastIndexOf can also be changed to $name.indexOf so that the search will stop at the first "space" not at the last.

Hope this helps.
andykeppel
Elite SysAider


SysAider from release 6 United States Pathfinder
Joined: 24/06/2009
Messages: 177
Location: Chanhassen, MN USA
Offline

Has anybody had the problem using $RequestUser in the Service Request Notification section (Preferences > Service Request Notifications)?

I've created some change-request processes that send the request user an eMail about the status of their request, but when I use the $RequestUser tag in a Service Request Notification, it tries to eMail it to the Full Name (which doesn't work) instead of the username (which does).

I've included a snapshot of the messages tab from one of my CRs. As you can see, it successfully eMails the request user through the automated processes, but when try to send a custom notification out, it uses a different format for the name and won't send an eMail.) Basically, I need the variable that returns the username not the full name...and it's odd because when you create a new Service Desk Notification, by default, it uses the $RequestUser variable, which doesn't work.
[Thumb - service_req_notification.JPG]
 Filename service_req_notification.JPG Download
 Description Service Request Notifications
 Filesize 90 Kbytes
 Downloaded:  32 time(s)


Andrew Keppel
"if it's stupid but it works, it isn't stupid"
Forum Index » SysAid Integration
Go to:   
Help Desk Software
Free Help Desk Software
Free Asset Management Software
SysAid Helpdesk Software
Web Based Help Desk Software
SysAid Help Desk Forum
General IT Discussion Forum
SysAid CSS Customer Service Software
Customer Support Software
   SysAid Technologies Ltd.
   Toll-Free phone center (U.S.): 1-800-686-7047
   Offices - U.S.617-231-0124
   Israel:+972-3-533-3675
   Email:helpdesk@sysaid.com
   Optimized by SEO Israel
   SysAid logos and other SysAid Technologies marks
   are trademarks or registered trademarks of
   SysAid Technologies Ltd.
   All Rights Reserved by SysAid Technologies Ltd.
   2002-2011
   Live Support Hours
   07:00 AM - 09:30 PM (UK)
   03:00 AM - 05:30 PM (EDT)

   We provide worldwide services, and we do our best
   to match the working times of customers from
   different time zones.

   SysAid Help Desk Software and Asset Management Software
Privacy Policy © Terms Of Use