I am using an automation where the user chooses the option to delete in a select list custom field.
I need the indexOf function to find the value selected by the user (A, B, C or AA), which I store in the variable userInputs.deleteOption, in this json: {id=14928, value=A, disabled=false}, {id=14929, value=B, disabled=false}, {id=14930, value=C, disabled=false}, {id=14937, value=AA, disabled=false}, {id=14941, value=BB, disabled=false}.
I have used the smart value indexOf so {{json.indexOf("chain")}} where the variable chain = , value={{userInputs.deleteOption}},
The result of this smart value is -1.
Can someone give me a hand?
Thank you very much.
Translated with www.DeepL.com/Translator (free version)