Use "Get user profile (V2)" action and give the email from the trigger "Created by" as input.
If company name is populated in the AD, you will get value using below expression: outputs('Get_user_profile_(V2)')?['body/companyName']
After that you can use substring to get the first four letters.