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

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

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