For some reason I'm getting an error on this function, does anyone know how to get the right 6 characters of a string?
substring(
triggerOutputs()?['body/{Name}'],
length(triggerOutputs()?['body/{Name}'])-6,
6)
Error - the expression is invalid
Announcements
For some reason I'm getting an error on this function, does anyone know how to get the right 6 characters of a string?
substring(
triggerOutputs()?['body/{Name}'],
length(triggerOutputs()?['body/{Name}'])-6,
6)
Error - the expression is invalid
Worked flawlessly. Appreciate it!
You need a sub() expression to subtract the number of characters from the string length.
See my example below:
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1