Hi there,
I have a large chunk of text that comes into an automation rule as a variable.
Part of that variable is this
text={"StarterName":"Jill Hampson","StartDate":"2025-09-19","Department":"Finance", so on and so forth
I am just trying to create variables based on the values
the variable is called raw.
I was creating a new variable called StarterName with this
{{raw.substringBetween('"StarterName":"','"')}}
Hi @Ste404
Please try using the jsonStringToObject() function. For example:
{{jsonStringToObject(raw).StarterName}}
Kind regards,
Bill
Did you try using regexp?
{{raw.match("\"StarterName\":\"(.*?)\"")}}
It should return Jill Hampson.
Or, if you want to use substringbetween make sure your delimiters exist exactly in the raw text.
I think the below would work
{{raw.substringBetween('"StarterName":"','","StartDate"')}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.