
JaspreetK.43467 (Customer) asked a question.
I'm creating a Workflow that does an action when a user's Display Name is updated. I need the previous DisplayName to be used in the action. But I'm not sure how to get that information since the trigger is run after the DisplayName is updated. Is there a place the previous name can be exposed to the Workflow?

Hello,
As you likely noticed the event: user.account.update_profile when fired is going to show the updated displayName and not the previous displayName (even if empty).
To meet your use case you would need to maintain a list/table of Okta ID's / current displayName values. If your total seat count is not very large this is likely feasible. However, if you have a high seat count this could very easily cause "System Limits" concerns.
https://help.okta.com/wf/en-us/Content/Topics/Workflows/workflows-system-limits.htm
So essentially create a flow that iterates all users to obtain their ID/Displayname and build out a table with that information. Once done. Stop that flow and use it again if you ever need to rebuild the data in table.
Then your main flow would have an event firing on that attribute change. It could then lookup the OktaID in the table obtaining the previous displayName/RowID. Do stuff. If the flow was successful update the table by RowID with the new displayname.