I am trying to take a substring from a Module field. In the expression block I have tried:
target: myVar
type: String
expression: substring(record.values.AccountName, 1, 3)
but receive the error:
workflow 238983435060772867 step 4 execution failed: expression “substring(record.values.AccountName, 1, 3)” failed: expected type int for parameter 1 but got int64
I have also tried setting two variables:
target: start, type: Integer, expression: 1
target:end, type: Integer,expression: 3
then using:
substring(record.values.AccountName, start, end)
but effectively the same error:
workflow 238983435060772867 step 4 execution failed: expression “substring(record.values.AccountName, start, end)” failed: expected type int for parameter 1 but got int64