Hi have a requirement while creating the known error article from the problem, author name and category is not populated ,how to solve this

Techno Mint
Giga Contributor

Hi  have a requirement while creating the known error article from the problem, author name and category is not populated ,how to solve this @shloke04  @Sandeep Dutta 

find_real_file.png

12 REPLIES 12

@Techno Mint 

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:

find_real_file.png

This should work for you.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hi, 

tried to add as you mentioned,but i couldn't get sourcetask.number

 

find_real_file.png 

@Techno Mint 

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:

find_real_file.png

find_real_file.png

find_real_file.png

Final Result:

find_real_file.png

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke