Re: Remove domain from user principle name
You need to use the expression builder for the formulas in each of the compose actions. If you have done it correctly, the Inputs will look like the image I posted with a pink box with fx at the beginning. When you click on the input box it should open this menu:

You need to click on Expressions and enter the formula in the fx box. As you build it, you can switch to the Dynamic content tab to get the e-mail field, etc. The three expressions you need:
- split(outputs('Get_user_profile_(V2)')?['body/mail'],'@') - splits the e-mail address at the @ symbol
outputs('Compose')[0] - gets the first item from the split (the e-mail address)
outputs('Compose')[1] - gets the second item from the split (the domain)
As long as you did not rename the Get user profile action, and don't rename your first compose action, the bold text above is what should work in the expressions.