Cheat Sheets/Power Automate/indexOf
Power Automate (WDL) function

indexOfPower Automate (WDL) function reference

Position of a substring.

Syntax

wdl
indexOf(text, searchText)

Examples

wdl
indexOf('a@b.com', '@')
1
wdl
substring(item()?['FullName'], 0, indexOf(item()?['FullName'], ' '))
The first name, split at the first space
wdl
if(equals(indexOf(item()?['Path'], '/archive/'), -1), 'active', 'archived')
"active" / "archived"

Common mistakes & gotchas

Related Workflow Definition Language functions

From Strings

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet