I'm trying to use all but the last character in a string variable, but Power Automate keeps giving me an "invalid expression" error, and I can't figure out why. Both these expressions give me the "Invalid expression" error...
length(variables('strHolding'))-1 //trying to put this into an integer variable
substring(variables('strHolding'),0,length(variables('strHolding'))-1) //trying to use this in a compose action
The strHolding variable contains a string that could be thousands of characters long, and it's always longer than 100 characters.