Fix script is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 05:18 AM - edited 12-22-2022 05:45 AM
Hi All,
I have created a fix script to update some field in knowledge table. while running the script I am getting error from a another business rule script which is written for show published KB article in template it will run as before query in Knowledge table
This is the business rule which run on before query in Kb_knowledge table
When I run any other script related to Kb_knowledge table I am getting this error
Does anyone know how to rectify this
Please help
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 05:51 AM
Hi sangeetha10,
1. Check that your tagetName variable is getting the value correctly. To do this, place a log below line 7:
gs.info("Target Name: " + targetName);
2. Check that your targetName variable is indeed a String:
gs.info("Target Name is String: " + typeof targetName);
If not, use toString() on your targeName variable to convert it.
targerName = targetName.toString()
MVP 2025 ✨
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2022 02:43 AM - edited 12-23-2022 03:59 AM
I tried this method of changing the variable name but still getting the error
I checked it is a object how can we can that to string