- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2019 10:52 AM
Hi ,
We have written the below script getting error .Please suggest how to avoid this error .
Service Charac is of Name-value Data type .
var properties = Object.getOwnPropertyNames(rel.service_charac);
for (var name in parsed.service_charac)
{
if (!properties.includes(name))
{
rel.service_charac[name] = parsed.service_charac[name];
}
Error: "error": {
"message": "Cannot find function includes in object .",
"detail": "TypeError: Cannot find function includes in object . "
Solved! Go to Solution.
- Labels:
-
Scoped App Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2019 11:02 AM
I am not sure, what is include. But you can use indexOf instead
if (properties.indexOf(name)==-1)
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2019 11:02 AM
I am not sure, what is include. But you can use indexOf instead
if (properties.indexOf(name)==-1)
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2019 11:33 AM
Thanks Sanjiv.Its working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2019 11:20 AM
What is your use case here?