Record producer is not linking the variable set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 06:37 AM
Hi
There are 2 issues that i am experiencing -
Issue 1:
I have created my first record producer called Log an incident.
I linked the basic information like caller, mobile phone, line manager etc. using Variable sets.
On the front end, it is working perfectly fine, however when the ticket is logged, it did not pull the user details in the incident (backend)
Front end -
Backend -
2nd issue - again its linked with the same record producer, I mapped the category and subcategory, and it is working perfectly fine on the front end, however at the backend it is not pulling the data.
can you please advise how to link the variable set and the variable so it will be pull the data at the backend?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 06:41 AM
Check the code which is OOTB.
https://INSTANCENMAE.service-now.com/now/nav/ui/classic/params/target/sc_cat_item_producer.do%3Fsys_id%3D3f1dd0320a0a0b99000a53f7604a2ef9%26sysparm_record_target%3Dsc_cat_item_producer%26sysparm_record_row%3D1%26sysparm_record_rows%3D2%26sysparm_record_list%3Dpublished_refISEMPTY%255Esys_class_name%2521%253Dsc_cat_item_composite_producer%255EnameSTARTSWITHcreate%2Bi%255Esc_catalogs%253DNULL%255EORsc_catalogsDOES%2BNOT%2BCONTAIN0b22fd2ad7021100b9a5c7400e610319%255EORDERBYorder
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 06:44 AM
Hi @Gurpreet Kaur5 ,
to which table u have linked your record producer?
The reason for not being mapped to the backend is the variables created under variable set have diff backend name due to which it will not automatically map to the backend.
You need to write a script in your record producer section something like this to map values in backend.
current.caller = producer.who_is_thi_request_for; // please use proper backend names of the field
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 08:42 AM - edited 12-13-2023 08:42 AM
Hi Danish,
As suggested, i added a script in my record producer section. The first issue is resolved where the variable set was not mapping the user details (name, email address, mobile number etc.)
however 2nd issue is still not resolved. When i click on Business Service and Configuration items, it is showing none at the front end portal-
Backend configuration is -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 09:28 AM
Hi @Gurpreet Kaur5 ,
None as in when u click on it u r not able to see the data?
If yes plz check with whichever user u trying to check whether that user has Read access to the Configuration item table or not.
For business service I believe we are suppose to lookup at different table rather than incident. cmdb_ci_service
Thanks,
Danish