When applying includes on a string variable :
I’m getting the following error :


CustomerOrderHandling_Error_Log is well a string and i’m not able to apply the includes function.
any idea why? please?
When applying includes on a string variable :
I’m getting the following error :
CustomerOrderHandling_Error_Log is well a string and i’m not able to apply the includes function.
any idea why? please?
Best answer by Buddhi Gunasekara
String.includes() is an ES6 function, which is not supported by the script task. Can you try .IndexOf() instead?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.