web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Modify Dynamic content
Power Automate
Unanswered

Modify Dynamic content

(0) ShareShare
ReportReport
Posted on by 27

I have a form that collects some info, one of these being the email but I want to just save the username from the email.

 

input from form: username@email.com

 

I want to remove @email.com 

 

and just enter: username 

 

tried expressions and compose with no luck so far.

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @jeffha77,

     

    Please try to use workflow definition language function split.


    I created a simple flow for your reference.


    The flow is triggered by a Button, in the first Compose action, I use the split function to split the string using “@”.

    split(triggerBody()['text'],'@')


    Then in the second Compose action, use the following function to get the username of the email address.

    outputs('Compose')[0]


    Then when the button is clicked and an email address is entered, it will return the username part of the email address.


    Please take a try with it.


    Best regards,
    Mabel Mao

  • jeffha77 Profile Picture
    27 on at

    I gave this a try but it didnt work. one thing i missed in the first post was that the email comes from a people picker. I ended up doing an item update to save the email adress, then a compose with this

     

    "@CONCAT('https://leprinofoods-my.sharepoint.com/User%20Photos/Profile%20Pictures/',REPLACE(body('Update_item_2')?['imageurl'],'@leprinofoods.com',''),'_leprinofoods_com_LThumb.jpg')"

     

    then last it and update item again with the username only

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 600

#2
Valantis Profile Picture

Valantis 453

#3
11manish Profile Picture

11manish 356

Last 30 days Overall leaderboard