How to get the version values for child article from Kb Knowledge table using business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 09:27 AM
I'm trying to create a child article from parent and trying to fetch the version value from the child article .So am using business rule :
1.When after
2.Insert
3.Kb_knowledge
In advance ,below is the simple code
(function executeRule(current, previous /*null when async*/ ) {
gs.info("Checking KB log" + current.getDisplayValue("version"))
})(current, previous);
But am unable to get the version ,Please guide me
If version will take time to load in Kb_Knowledge table ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 09:45 AM
Hi @String ,
In OOB kb_knowledge i cannot see any field with name version
But in kb_knowledge_base_list table i am able to see
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-07-2023 09:53 AM
Hi @Anand Kumar P thanks for your quick reply ,below is the knowledge record looks like in kb_knowledge table and trying to fetch version value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 12:07 PM - edited 12-07-2023 12:07 PM
@String Try below script
gs.info("Checking KB log" + current.version.getDisplayValue());
or
gs.info("Checking KB log" + current.version.toString());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 04:04 PM
Hi @Anand Kumar P still not returns any value !