Skip to main content

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?

 

@kamnlk  any idea please?

String.includes() is an ES6 function, which is not supported by the script task. Can you try .IndexOf() instead?


that did it for me

thank you ​@Buddhi Gunasekara . 

could we have more explanation on what is es6 and the compatibility behind it please?


@IFSRUNINNOVAL,

ES6 stands for ECMAScript 6. It is a major revision of JavaScript language. ES6 added some new functionalities, including the String.includes() function. Currently, JavaScript in script task only supports functionalities before ES6.


Reply