One record producer with two target tables?

Ganeshm1
Tera Guru

Hi All,

Hope you are doing good. 

I have scenario, is there anyway to use one record producer targeting two different tables?

Example:
I have a record producer with variable called 'target table', with options 1. Incident, 2. Problem.

When they submit the record producer with target table = incident. I want to create Incident record.

Similarly when they submit the record producer with target table = problem. I want to create problem record.

I know people may suggest to create two record producer in this case but just curious to know is there any way to achieve this functionality. 

Let me know your thought on this. Thank You!

Best Regards,
Ganesh

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Ganeshm1 

why would someone use record producer to create problem?

1 record producer will have only 1 target table

you can always use record producer script to manipulate data in other table.

OR
You can use a catalog item and then allow user to submit and then based on table selected create PRB or INC using workflow or flow designer

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ganeshm1 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Ganeshm1 

One Record Producer (RP) can target only one table. Also, what you're trying to do with variables like Incident/Problem is not a good use case. If your goal is to create multiple records from one RP based on a variable, that’s not ideal.

The reason is that ServiceNow already provides separate RPs for Incident and Change. A Problem record, for example, should be created by a fulfiller—not by the end user. That’s also why there's no OOTB RP for Problem.

So, I recommend following the system’s out-of-the-box design.

*************************************************************************************************************
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]

****************************************************************************************************************

AndersBGS
Tera Patron
Tera Patron

Hi @Ganeshm1 ,

 

As @Ankur Bawiskar mentioned, you can have a record producer script to manipulate the input to a record producer, so you can create a ticket in two different tables based on input. 

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/