Check if INC hs been created in Employee Center or directly in SN

Kasia5
Tera Contributor

Hi All

 

I have a requirement to check if INC has been created in Employee Center or directly in SN.

If in Employee Center portal then I need to set contact_type to Self Service

If directly in SN then I need to set contact_type to Telefon

 

How can I achieve this?

 

Thanks in advance

6 REPLIES 6

@Kasia5 

is your table extended from task?

If yes then this line will work

    itemProducedRecord.addQuery('task', current.sys_id);

If your table is not task extended then this will work (use record_key) field during query

    itemProducedRecord.addQuery('record_key', current.sys_id);

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 @Kasia5 

I'm not sure if I understood correctly, but when you say "check," the question is how it is coming into SN—via portal, API, native view, or email? Based on this, you can decide the approach:

  • If it’s coming via the portal, it means the Record Producer is used.
  • If it's coming via email, it’s an inbound action, and you would need to set the value accordingly.
*************************************************************************************************************
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]

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