PowerAutomate – User claims to UserPrincipalName

We have encountered a situation while working on an older Powerautomate flow that needs some modification. It requires UserPrincipalName instead of User Email. (People picker) It sounds to be simple but there is no dynamic field to accomplish this.. Now what should we do? On researching we have found a solution to achieve it.. We…