Skip to main content

Notifications

Community site session details

Community site session details

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

  • efialtes Profile Picture
    350 on at
    Re: How to use functions in Flow

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

  • manlamcheng Profile Picture
    14 on at
    Re: How to use functions in Flow

    I used Compose action, seems working fine

  • manlamcheng Profile Picture
    14 on at
    Re: How to use functions in Flow

    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

     

     

  • Verified answer
    v-micsh-msft Profile Picture
    on at
    Re: How to use functions in Flow

    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

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