- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2022 09:09 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2022 10:45 PM
@Asish17 Create record producer on kb_knowledge table
Create new variables
Need to check the "Map to field" and field to be mapped in variable created as below
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.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2022 02:37 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2022 03:05 AM
@Asish17 i would say let number be auto number only, you do not need number variable in record producer.
For category, makr category as reference variable referring to kb_category and then map it to category field.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2022 03:13 AM
Hi @RaghavSh
Thanks for the reply so number will be auto generated with KB appended right for example..(KB0010039)
Asish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2022 03:24 AM
Yes that is OOB , it will start with KB like incident starts with INC, untill it is changed from number maintenance.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2022 03:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2022 03:55 AM
@Asish17 if your query is answered, you can mark the relevant answer correct to close the thread.
Raghav
MVP 2023