Import set

Nandhinisri
Tera Contributor

Hi,

 

Interviewer question : You are creating an event to create incident in a incident table via import set. Will it check for mandatory field on the form while creating records or not?

 

As per my understanding , its yes. The record will be created. Can anyone explain me in detail.

6 REPLIES 6

Robert H
Mega Sage

Hello @Nandhinisri ,

 

It depends on how you have configured the "Enforce mandatory fields" option on the Transform Map. See this guide for more details.

 

But I'm a bit confused when you say you are creating an event to trigger the process. Are you referring to the REST Import Set API here?

 

Regards,

Robert

J Siva
Tera Sage

Hi @Nandhinisri 

By default it won't mandate. We need configure that in the transform map. For more details review below doc.

https://developer.servicenow.com/dev.do?_escaped_fragment_=/learn/courses/xanadu/app_store_learnv2_i...

 

Regards,

Siva

Shivalika
Mega Sage

Hello @Nandhinisri 

 

If the mandatory field checks are applied by business rules or Data Policy - these two server side checks - which runs on database insert or update, and if the in the transform map you have "checked - Run Business Rules" checkbox - it will check. If it is data policy it will definitely check. 

 

But if the mandatory checks are applied by something on the client side, like UI policy or any client script - which runs only when the form is loaded, in that case it will not check in database inserts/updates - via TM or Import set. 

 

So it depends on what is working to make it mandatory. Now if you want it to always be mandatory and also not want to create a BR or Data Policy - you will need to write transform scripts - on before or run scripts (checkbox in TM) and then it will behave like that. 

 

I hope I answered you in detail and actually I have explored Import Set API just yesterday, I just haven't uploaded the video in my channel yet. Maybe tomorrow I will. So this analysis is 100% sure with demonstration.

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

Dr Atul G- LNG
Tera Patron
Tera Patron

 You are creating an event to create incident in a incident table via import set. Will it check for mandatory field on the form while creating records or not?

 

Atul: When we bring data into ServiceNow via a third-party or external source, and if you define a Data Policy, it will check for mandatory fields because the Data Policy has the feature to enforce those checks.

 

AGLearnNGrow_0-1743935916145.png

 

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

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