Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started with Redwood for Oracle Cloud HCM   Begin Now
To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.

For more information, please refer to this announcement explaining best practices for getting answers to questions.

How do I generate a random number within a fast formula?

edited Jan 2, 2025 9:27PM in Benefits 3 comments

I am trying to generate random numbers to be used when logging Benefits related fast formulas, using ADD_RLOG (of course, this is applicable to non-Benefits related fast formulas as well).

L_FF_NAME = 'FORMULA_NAME'
L_FFS_ID = -1
L_RULE_ID = -1 /* I want this to be a random number */ R_LOG = ADD_RLOG(L_FFS_ID, L_RULE_ID, L_FF_NAME || ' | This is a log!')

From my understanding the L_RULE_ID could be leveraged to filter by an "instance/run". In theory, if I wanted to filter my report to capture just the logs associated with a single "instance/run" of an associated fast formula being triggered, having a unique identifier generated for each "instance/run" could allow me to filter by

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!