- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2024 02:06 AM
Hello all,
New to scripting and need some help, is there a way to change the where the articles are going to be in draft state to a different knowledge base rather than default "Knowledge". I tried changing the sys id in bold to another knowledge base but that didnt work, any help is greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2024 03:31 AM
Hi @misolarz ,
Insted this : kb.kb_knowledge_base = gs.getProperty("glide.knowman.task_kb", "SYS_ID of knowledge base?");
use this:
kb.kb_knowledge_base = gs.getProperty("glide.knowman.task_kb");
if glide.knowman.task_kb system property have knowledge base sys_id as value it will insert record
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2024 03:23 AM
kb.kb_knowledge_base = gs.getProperty("glide.knowman.task_kb", "SYS_ID of knowledge base?");
This part doesn't look right. gs.getProperty simply looks up the value of the provided property. You don't need a second parameter to "feed" it a sys_id. I think you want to GET a sys_id, no?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2024 03:31 AM
Hi @misolarz ,
Insted this : kb.kb_knowledge_base = gs.getProperty("glide.knowman.task_kb", "SYS_ID of knowledge base?");
use this:
kb.kb_knowledge_base = gs.getProperty("glide.knowman.task_kb");
if glide.knowman.task_kb system property have knowledge base sys_id as value it will insert record
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand