Record Producer does not create a request

Anisse Mahtat
Tera Contributor

Hello, I have a problem, I have created a record producer with a form but when i submit this form, This is not a request who is created but a record and i can't have find my request in 'My requests' tab. 

 

TeleworkRequest.PNG

Save.PNG

1 ACCEPTED SOLUTION

Susan Britt
Mega Sage
Mega Sage

To verify the COE (table) for your HR Service and Record Producer:

  1. Navigate to "HR Service Configuration" module
  2. Find & open your HR Service (e.g., Telework Request)
  3. Validate the "COE" value - this is the table for your HR Service
  4. From this record, click on the preview icon beside "Record Producer"
    • rec producer.png
  5. Validate the "Table name" value - this is the table for your record producer, which should match the table for your service.
    • rec prod table.png

 

If you do not have an HR service for your record producer, then you will need to create one; or if you have the service, but haven't connected the record producer to it, you can simply select and update it from the HR Service record.

 

Your record producer's "Script" should contain the normal script which will populate the generated HR Case's description with all of the answered variables, as well as update the Opened for, Subject person, etc.

  • new sn_hr_core.hr_ServicesUtil(current, gs).createCaseFromProducer(producer, cat_item.sys_id);

View solution in original post

7 REPLIES 7

Aniket Zepale
Tera Guru

Hi Anisse,

 

If you want to create request then you can create catalog item instead of record producer.

Please see below link to refer how to create catalog item in servicenow.
https://docs.servicenow.com/en-US/bundle/utah-servicenow-platform/page/product/service-catalog-manag... 

 

 

 

 

Hi,

This is expected behavior. Record producer only insert a record in your target table (Incident, or any table you defined on record producer).

My Request module in Left navigation shows records submitted using Catalogl Items (Sc requests). If you submit catalog item it create a record in Request (sc_request) and Requested Item(sc_req_item).

If you want to show records submitted by user, then create a module to show list of records from your table and apply required filter.

 

Please check below link for more details.

https://www.servicenow.com/community/itsm-articles/catalog-item-v-record-producer-when-why-simplifie...

what-are-record-producers-vs-catalog-items 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Thanks for your responses @Aniket Zepale and @Anil Lande The problem is this is a catalog item and a record producer for my hr service.

Aniket Zepale
Tera Guru

Can you share your record producer script?

Make sure you have added below link in your record producer script.
new sn_hr_core.hr_ServicesUtil(current, gs).createCaseFromProducer(producer, cat_item.sys_id);

 

Can you share your Hr service screenshot?

Make sure you attached record producer on Hr service form.