Auto populate contact_type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
What is the source for your incident creation? Is it directly from incident form? or record producer? or email?
We have to set the contact type in the configuration for each source.
For example, for inbound emails, you have to set the contact type to email in your inbound email scripts.
Accept the solution and mark as helpful if it does, to benefit future readers.
Regards,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
This typically indicates that two different processes are involved in incident creation.
The first incident (with missing mandatory fields and blank Contact Type) is likely being created outside the normal UI flow—for example via:
Integration / API
Background script
Import set
Such methods bypass client-side logic (like default values, UI policies, or client scripts), which is why Contact Type did not auto-populate.
The second incident created after a few seconds is likely from:
A Business Rule / Flow Designer / Integration retry
Or a correction mechanism that creates a proper record with all required fields
So what’s happening is:
First record → created without proper validation (bypassed UI logic)
Second record → created by a process that enforces correct data
Why Contact Type is blank?
Because auto-population is probably handled via:
Client Script or UI Policy (runs only on form)
and not via server-side logic
Fix:
Move the Contact Type defaulting logic to:
Business Rule (before insert)
orData Policy
so it works for all entry points (UI + API + integrations).
Hope this helps! If it did, please mark it as helpful 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
then on your record producer form from where user is submitting incident there you should ask for mandatory fields so that you can map against the target fields
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @radhamanchi
Check this KB0824024 Incidents created without filling out mandatory fields
Are you sure user is waiting on that incident for 7 seconds only. because this kind of scenario typically occurs when a session times out or a server-side script bypasses client-side validations.
Probable Solution could be - Implement Data Policies instead of just UI Policies, as Data Policies enforce mandatories at the server level regardless of the user's session state.
