Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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.

  • jeffha77 Profile Picture
    27 on at
    Re: Modify Dynamic content

    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

  • v-yamao-msft Profile Picture
    on at
    Re: Modify Dynamic content

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow