Was trying to build a simple cloud flow that looped a few times after reading the name of an account that ended FBO
I am having a problem with getting my code below to be accepted, I keep getting "invalid expression" on the editor and I do not understand why. I was going to use the RIGHT function but that does not seem to be an option, so I came up with what I have below to pull the last three letters so I can check to see if the record has FBO on the end.
substring(body('Get_a_row_by_ID')?['name'],(length(body('Get_a_row_by_ID')?['name'])-3),3)
Below is a picture of my current flow
and an image of my problem

