cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
manlamcheng
Helper I
Helper I

How to use functions in Flow

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 !

1 ACCEPTED SOLUTION

Accepted Solutions
v-micsh-msft
Community Support
Community Support

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

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-micsh-msft
Community Support
Community Support

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

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

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

 

 

I used Compose action, seems working fine

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,151)