GraphQL Query for Knowledge records in workspace

Lhora Alvarez
Tera Sage

In CSM workspace, a modal will appear in the screen when you create a new knowledge record.

This allows you select the target knowledge base and article template.

 

The list of knowledge base was queried using GraphQL Data Broker named "Get contributable knowledge bases".

Inside it is a query to a schema named "AppKnowledge_Query ".

 

What I want to know is, where do I find the the "AppKnowledge_Query"?

I want to check its functions and whether it's possible to modify it.

 

LhoraAlvarez_0-1730170141346.png

LhoraAlvarez_1-1730170261072.png

 

1 ACCEPTED SOLUTION

Hello @David Speirs 

It's been a long time I posted this.

I forgot the exact table I found the record but, from what I remember, the AppKnowledge_Query is a protected script that is only available to ServiceNow employees.

We cannot modify the script for customization.

View solution in original post

7 REPLIES 7

@Lhora Alvarez .... the table name is "sys_ux_data_broker_transform" and the script name is "KB details transform" . The method  "AppKnowledge_Query" is called from that script

I believe the KB details transform has the GraphQL data from AppKnowledge_Query passed to it through the Composite Data Broker Get knowledge record details. The issue is the GraphQL Api that AppKnowledge_Query is using is hidden.

 

The GraphQL Data Broker from the Composite Data Broker is called Get knowledge record. 

 

It could be used in others as well but that's just the one I was looking into.

David Diallo
ServiceNow Employee
ServiceNow Employee

It 's a Data Broker Server Script and it can be found in the table "sys_ux_data_broker"