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 / How to use functions i...
Power Automate
Answered

How to use functions in Flow

(0) ShareShare
ReportReport
Posted on by 14

Are there functions that I can use withing Flow ? eg. substring, length, math functions

 

I tried to add "@substring('hello world',2,3)" in an email body, the flow just stopped, and email body becomes uneditable afterward, 

I tried to use a variable and set it to the above function, then use the variable in the email, it just simply send the whole text 

 

please advice

 

Thanks !

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

    Hi @manlamcheng,

     

    Yes, we could take use of Workflow Definition Language to work with Microsoft Flow.

    Take a look at the following blog:

    Using the Azure Logic Apps Workflow Definition Language (WDL) in Microsoft Flow

    For the function usage, you could find the function reference through the article below:

    https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

     

    Regards,

    Michael

  • manlamcheng Profile Picture
    14 on at

    I tried put something like this on an email body, it simply send me the same string

     

    test "@concat('hello','world')"

     

    then I went back into edit the flow, the email body became uneditable and I had to delete the action and re-did it

     

     

  • manlamcheng Profile Picture
    14 on at

    I used Compose action, seems working fine

  • efialtes Profile Picture
    350 on at

    @manlamcheng I could't also manage to make concat work... I failed to make this expression work and it was driving me crazy:

     

    "@concat(variables('HTMLTable'),'​​<tr> <td>'​​,item()?['Aplicación'],'</td> <td>',item()?['Version_x0020_Name'],'​​</td> <td>',item()?['Version_x0020_Code'],'​​</td> <td">',item()?['Testing_x0020_Level'],'​​</td> <td>',item()?['Acción_x0020__x002f__x0020_Status'],'​​</td> </tr>')"

     

    So finally I tried with "Compose" action block and it worked fine.

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 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard