I have a string variable in Azure Data Factory (v2) from which I want to remove the last 3 characters. Initially I thought using the substring operation, it requires startIndex and length parameters. However the startIndex can vary because the string does not have a fixed length. Any suggestions on how to tackle this?
Example, remove last 3 characters, string length varies:
'abcdef' -> 'abc'
'helloworld' -> 'hellowo'
'2020_18' -> '2020'