Im using Power Automate Desktop - Signed into a personal account (Not a business account)
I'm copying text to a variable and I'd like to get the last 6 characters of that text and copy to a seperate Variable
Example
Variable1 = Description of goods (Code:13453)
I want to get the "(Code:13453)" and put into a different variable.
Have been using the "Get Subtext" action to try get this done. At the "Character Position", have tried creating an expression but everything I'm trying is giving error messages.
Have been using copilot and chatgpt to get this done but they are no help.
Troubleshooting so far.
I've managed to figure out that %Variable1.Length% gives me the correct number of characters in that variable.
(Copilot's solutions) - All giving error messages = Arguement "CharacterPosition" must be an integer value
%Variable1.Length& -12
%Variable1.Substring(Variable1.Length - 12)%
%Variable1.Subtext(Variable1.Length - 12)%
Would anyone know the correct expression needed to get this done.
Cannot find a list of valid expressions I can use in Power Automate on the web, so have been trying to use different languages I've used in the past, but none are working.
even the Right() function isn't valid.