The Create Known Error Article link on the Problem form is not associating the problem number

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2019 11:47 AM
In New York, in a clients instance, the Create Known Error Article link on the Problem form is not associating the problem number to the Knowledge Article. Not sure what might be causing this to occur. I have looked at the UI Action for that link. I am not sure how to follow the Script Include CSMTableMapUtil. Not sure what it is trying to do. Any thoughts on how to make this occur and how this script include is supposed to work?
function createKEClient() {
if(g_form.modified) {
getMessage("You have unsaved changes. Please save them to continue.", function(msg) {
g_form.addErrorMessage(msg);
});
}else{
g_form.submit('create_ke_article');
}
}
if(typeof window == 'undefined')
createKEServer(current);
function createKEServer(current){
var map = new global.CSMTableMapUtil (current);
map.findMapByName("problem_known_error_article");
var targetURL = map.getTargetURL();
if(targetURL) {
action.setReturnURL(current);
action.setRedirectURL(targetURL[0]);
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2019 12:14 PM
The Target table for the csm_table_map is kb_template_known_error_article (Known Error Article)
Is that what you are asking?
The source is problem.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2019 12:18 PM
I forgot to post this earlier! It belongs with this string.
I just found information on the plugin that I need to activate in my PDI to make my PDI more like the client. I need to install com.snc.best_practice.problem.madrid.knowledge or Problem Management Best Practice - Madrid - Knowledge Integration.
I have been comparing my clients site with my PDI after activating the plugin and still cannot figure out why the Source Task field does not get the sysid of the problem that is creating it.
The URL that is created to populate the fields on the Know Error Article looks exactly like the PDI's URL, which populates the Source Task field, but in my Clients, it does not. The Target URL looks like this:
/kb_template_known_error_article.do?sys_id=-1&sysparm_query=source=362d94491bb54c54342bdd7edd4bcbe7^short_description=test^kb_description=^kb_workaround=^kb_cause=%3Cp%3Eter%3C%2Fp%3E
The Short Description, Description, Workaround and Cause Notes on the Known Error Article all get the values in the URL, but not the source field. I have opened the field up as it was readonly so I could select a task record (I selected the PRB record with the same SysID from the URL's source value) that works correctly, so the sysID is a valid value, I just don't understand why it is not populating. Maybe it populates and then clears out? I will try a field watcher to see if multiple things happen. The Field Watcher did not work at all, I kept having to back page after I set the field watch and then the debug output would blank out. So that was a waste of time.