How to map all the knowledge article fields to a record producer.

Asish17
Tera Contributor

Hi,

 

We have a requirement that whenever we open create new knowledge article there are some fields visible so our requirement is to map all those fields to a record producer and replace that form layout with that record producer, is it is possible..

 

Thanks,

Asish

2 ACCEPTED SOLUTIONS

jaheerhattiwale
Mega Sage
Mega Sage

@Asish17 Create record producer on kb_knowledge table

jaheerhattiwale_0-1672123251801.png

 

Create new variables

jaheerhattiwale_1-1672123282336.png

 

Need to check the "Map to field" and field to be mapped in variable created as below

jaheerhattiwale_2-1672123436996.png

 

 

We cannot replace the form layout with record producer but we can create a new left navigation module to redirect to record producer.

 

Please mark as correct answer if this solves your issue.

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

View solution in original post

Yes you can map every field, just make sure that the variable choice list field values match the choices values of fields.

 

Also if you are not able to cater any field through mapping you always have an option to script in record producer using :

 

current.field_name=producer.variable_name;


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023

View solution in original post

32 REPLIES 32

Asish17
Tera Contributor

Hi @RaghavSh 

 

can you please help me with this.. 

what is the URL argument format to be given there.. 

OOB URL argument is "knowledge_create.do?sysparm_stack=kb_knowledge_list.do"

how to redirect it to record producer..

 

I am trying with the following URL "sc_cat_item_producer.do%3Fsys_id%3D79a427b81bc02990171354242a4bcbce%26sysparm_record_target%3Dsc_cat_item" but its coming like page not found anything to add here...

 

 

Thanks,

Asish

for portal : /sp?id=sc_cat_item&sys_id=79a427b81bc02990171354242a4bcbce

for backend: /nav_to.do?uri=com.glideapp.servicecatalog_cat_item_view.do%3Fv%3D1%26sysparm_id=79a427b81bc02990171354242a4bcbce


Raghav
MVP 2023

Asish17
Tera Contributor

@RaghavSh It is appearing like this 

Asish17_0-1672142992607.png

 

Asish

@Asish17 Please check the sys id of record producer and add it correctly in the url

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

Asish17
Tera Contributor

Hi @RaghavSh 

 

and the number is not auto generating anything to add in that variable..

 

Asish17_1-1672143243650.pngAsish17_2-1672143292540.png

 

Thanks,

Asish