FTransaction is a unique syntax for the F8 platform. It’s primarily used for tracking and accessing information about transactions taking place.
Common Usage
Listed here are several common usage examples of FTransaction
Set a slot to the currently logged in user
$record.assignment_user = $transaction.getActiveUserRecordId();
Add a comment with the logged in user's name
$record.comments = "Closed by: " + $transaction.getActiveUserName();
Methods
| Details | Returns
|
|---|---|
| appendOutput(String)
|
none |
getParameter(String)
|
the parameter value |
hasParameter(String)
|
true if parameter exists and false if not |
setActiveUser(String userID, String userName, String userRecordID)
|
none |
resetActiveUser()
|
none |
FTransaction#getUserValue()
|
object |
getActiveUserId()
|
string |
getActiveUserName()
|
string |
getActiveUserRecordId()
|
32 character string |
isSuperUser()
|
true if super user and false if not |
| getRequestHeader(String)
|
|
getSessionTimezone()
|
string |
getSessionId()
|
string |
getSessionId()
|
string |
toJSON()
|
JSON string |
