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

Notifications

Announcements

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard