Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Help with an expression / variable

(0) ShareShare
ReportReport
Posted on by 5

Hey Guys

I am struggling to get an expression to work when setting the Mailnickname for a user gathered by response details in a form

Essentially I get Firstname and Last Name of the form and then want to have f.lastname set as the nickname 

substring(outputs('Get_response_details')?['body/FirstnameID'], 0, 1) & "." & outputs('Get_response_details')?['body/LastnameID']

And it just won't work.

Any ideas ?

  • automating Profile Picture
    5 on at
    Re: Help with an expression / variable

    Yueyun Zhang you are a legend, thankyou 🙂

  • Verified answer
    v-yueyun-msft Profile Picture
    on at
    Re: Help with an expression / variable

    Hi , @automating 

    Can you try to use this code ? In flow , there is no & in the expression.

    concat( substring(outputs('Get_response_details')?['body/FirstnameID'], 0, 1)  , '.', outputs('Get_response_details')?['body/LastnameID'] )

     

    If this can not help you , can you show the error code in your side?

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics

Restore a deleted flow