Hi have a requirement while creating the known error article from the problem, author name and category is not populated ,how to solve this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2022 07:20 AM
Hi have a requirement while creating the known error article from the problem, author name and category is not populated ,how to solve this
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 01:06 AM
This looks like some sort of customization in your instance or some custom configurations causing this.
I have reverified in my PDI and works perfectly well OOB with no issues to author field.
Do one thing, directly create a Known error article using knowledge menu and see if Author gets populated from there or not.
Alternative workaround:
You can write a Before Insert Business Rule on Known Error Table and use the script as below which will fill out the Author field for you as you need:
BR details below:
Table Name :Known Error Article (kb_template_known_error_article)
When: Before Insert
Condition: Source Task.Number starts with PRB(This will ensure this rule works only for Problem linked Known error and not for all)
Script:
(function executeRule(current, previous /*null when async*/) {
// Add your code here
current.author = gs.getUserID();
})(current, previous);
BR Screenshot below:
This should work for you.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 07:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 10:45 AM
You need to dot walk in and then you will be able to find the number as shown in screenshots below:
First type Show related Fields --> Then select Source Task -->Source Task -->Task Fields . Then select Number.
Refer to screenshots below for reference on how to do it:
Final Result:
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke