Login    Sites MenuBlueStep

BlueStep Platform Support

RelateScript
Outline full outline 
Overview 
Data Types 
Operators 
Statements 
Functions 
Data Conversion 
String Functions 
HTML/CSS/JavaScript 
Array Functions 
Date/Time Functions 
Mathematical Functions 
Advanced Functions 
Alert Functions 
getNewAlert(...)
B.createAlert
 
getAlert(...)
B.findAlert
 
getUserAlerts(...)
B.User.alerts
 
compileSASS(String Sass) 
createChart(...) 
doLookup(...)
B.lookup
 
drugAllergyByProductID(...)
B.Drug.allergyInteractionsWith
 
drugDrugByProductID(...)
B.Drug.drugInteractionsWith
 
drugFoodByProductID(...)
B.Drug.foodInteractions
 
getCurrentNav(...) 
getHTTPRequester(...)
B.fetch
 
getPageInfo()
B.pageInfo
 
getPDF(...)
B.pdf
 
getRecentRecords(...)
B.optRecentRecords,BaseRecord.optRecentRecords,User.recentRecords
 
getSecurityGroup(...)
B.findSecurityGroup
 
getUserData(...)
B.sessionData,User.userData
 
getZipOutput(...)
B.zip
 
isLayout() 
log(...) 
Medispan 
newEmail(...)
B.email
 
readZip(...)
B.zip
 
sendEmail(...)
B.email
 
sendIntramail(...) 
sendMessage(...)
B.sendMessage
 
sendRedirect(...)
B.response.sendRedirect
 
sleep(...) 
Restricted Functions 
Working with Relate Data 
How Formulas Work 
Related Topics 

The getUserAlerts(...) function is used to get all the alerts sent to a particular user which were active within a specified period of time.  Specifically, it gets all of the alerts, sent to the user, which have a start time prior to endDate and an end time after the startDate.  If no startDate or endDate is passed (not even null), then only the user's current alerts, which are not marked complete, will be returned.  The result of this function is an array of alert objects.

Syntax:
getUserAlerts( username )
getUserAlerts( username, startDate, endDate )

username.getUserAlerts( )
username.getUserAlerts( startDate, endDate )

 

Parameter Description
username A String value containing the username for the alert recipient.
startDate A DateTime value containing the start date of the alert notifications.  If null or not passed, the default is the current date and time.
endDate A DateTime value containing the end date of the alert notifications.  If null or not passed, the default is the current date and time.