I don't believe there is a variable for this today. The purpose of formulas was related to mathematical calculations for attributes with Excel like functions. The current date/time makes sense as there are a lot of scenarios where you would need to calculate the time difference between two dates. From a mathematical equation perspective, getting the logged in user doesn't make a lot of sense.
You can do everything in an Automation Script (and more) that you can do with formulas. The advantage to formulas is the syntax (most people are comfortable with Excel style calculations) and not needing to create launch points on all of the attributes for your script to fire properly as values change. For example, if you have 5 attributes that make up the formula, you would need 5 validation/action launch points to ensure that a change in one will recalculate your field if you need it real time (though just the object launch point if you just care on save).
From a formula you can call an automation script. You could use that to return the value, but at that point, to me it's better to just write an object launch point save event.
I understand the desire to minimize the number of automation scripts and it's a good objective. On scripts like this, you could make it a generic script (with multiple launch points) to be used on other objects in the future if you need changedate to be set on other objects so that you at least could re-use it.
------------------------------
Steven Shull
Director of Development
Projetech Inc
Cincinnati OH
------------------------------
Original Message:
Sent: Tue June 15, 2021 10:26 PM
From: User1971
Subject: Populate CHANGEBY using Maximo attribute formula?
MAM 7.6.1.2:
I'm trying to learn how to populate persistent fields without using automation scripts.
Reason: We already have hundreds of automation scripts. I'm reluctant to create more scripts just to populate simple fields.
Examples:
1. I can populate CREATEDDATE and CREATEDBY fields by using default values in Database Configuration. (:&DATETIME& and :&PERSONID&)

2. And I can populate CHANGEDATE using $sysdate$ in a Maximo attribute formula (docs 1, docs 2, PDF 1, and PDF 2).

Question:
How can I populate CHANGEBY using a Maximo formula? (or any other non-automation script method)
I've tried some blind guesses like $username$, $user$, $person$, and $personid$. But unsurprisingly, none of those guesses worked.
Thanks.
#AssetandFacilitiesManagement
#Maximo