chrome_tab for creating a new knowledge base article

RussLaPlante
Tera Expert

I want to be able to click on the "+" tab in SOW to create a new KB article, presenting users with the window to choose the knowledge base they want to add the article too. 

I'm seeking help with formatting the JSON. I can create an article in the default kb with this JSON:

 

{
"label": {
"translatable": true,
"message": "New Knowledge Article"
},
"routeInfo": {
"route": "record",
"fields": {
"table": "kb_knowledge",
"sysId": "-1"
},
"multiInstField": "sysId",
"condition": {
"tableDescription": {
"table": "kb_knowledge",
"canCreate": true
}
}
}
}

 

But I want to present the "Create Article" window that asks which article and template we want to use:

RussLaPlante_0-1716315514279.png

I reached the above window by going to my list of KB articles and clicking the New button.

Any ideas?

 

1 ACCEPTED SOLUTION

Thanks so much for your help James! I have this working now.

 

I made one small mod after your suggestion. Here's my config to end the discussion:

 

"label":{
"translatable":true,
"message":"New Knowledge Article"
},
"routeInfo":{
"route":"kb_template_selector_modal",
"fields":{
"table":"kb_knowledge"
},
"multiInstField":"sysId"
},
"condition":{
"tableDescription":{
"table":"kb_knowledge",
"canCreate":true
}
}
}

View solution in original post

8 REPLIES 8

James Chun
Kilo Patron

Hi @RussLaPlante,

 

How did you get to the Create Article window? I looked everywhere (SOW, backend, etc) but can't seem to find it.

Maybe I am missing some plugins..?

 

Cheers

This is how I got there within SOW:

RussLaPlante_0-1716327718285.png

 

I'm not familiar enough with SOW and this UI to figure out the chrome_tab route.

 

Thanks.

Thanks, try changing the value of the route to kb_template_selector_modal

i.e. "route": "kb_template_selector_modal"

 

Cheers

RussLaPlante
Tera Expert

James,

Thanks for the suggestion. I've been trying that but now think I'm just hung up on bad JSON or incorrect parameters:

{
"label": {
"translatable": true,
"message": "New Knowledge Article"
},
"routeInfo": {
"route": "kb_template_selector_modal"
"fields": {
"table": "kb_knowledge",
"sysId": "-1"
},
"multiInstField": "sysId"
},
"condition": {
"tableDescription": {
"table": "kb_knowledge",
"canCreate": true
}
}
}

 

Thanks, Russ