- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2014 04:01 AM
Hi All,
I have used javaScript function "indexOf() " in record produces fulfillment script.
When I run it in Background Script it is working. When I am using same in fulfillment Script.
I am getting following Error "indexOf is not a function ".
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2014 12:53 AM
Hi All,
Now problem has been fixed.
If you get such error you should use javaScript String() function.
var n = String(strToSystemName).indexOf('.');
Now it will work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2014 04:10 AM
Try this :
var code = indexOf('....');
var output = eval(code);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2014 05:49 AM
Hi,
It's Not working even I have try str.split("."); function.
this function also giving me same error "split is not a function" with record producer .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2014 09:01 AM
Please post your script in this thread. There may be a different error causing this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2014 12:53 AM
Hi All,
Now problem has been fixed.
If you get such error you should use javaScript String() function.
var n = String(strToSystemName).indexOf('.');
Now it will work.