{"id":155136,"date":"2026-11-01T13:53:51","date_gmt":"2026-11-01T13:53:51","guid":{"rendered":"https:\/\/docs.daftra.com\/?post_type=faq&#038;p=155136"},"modified":"2026-11-01T14:41:57","modified_gmt":"2026-11-01T14:41:57","slug":"how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one","status":"publish","type":"faq","link":"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/","title":{"rendered":"How does the system decide whether to create a new employee or update an existing one?"},"content":{"rendered":"<div dir=\"ltr\" lang=\"en\">\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">When you import employees from a file, the system relies only on the <strong style=\"color: #111827;\">Employee Code<\/strong> column to decide what happens to each row in the file:<\/p>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Code value in the row<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">What happens<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Code exists in the system<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Updates<\/strong> the details of the employee with this code.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Code does not exist in the system<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Creates<\/strong> a new employee.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Cell is empty<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Creates<\/strong> a new employee, and the system generates their code automatically.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">The system does not use the Official ID, email address, or phone number to decide whether to create or update. To update an existing employee, enter their code in the file exactly as it appears in the system, because any difference in the code creates a new employee instead of updating the existing one.<\/p>\n<div style=\"display: flex; gap: 10px; background: #f6f8fb; border-left: 4px solid #1a56db; border-radius: 6px; padding: 14px 16px; margin: 0 0 18px;\">\n<p><span style=\"flex: 0 0 auto; font-size: 18px; line-height: 1.6;\">\ud83d\udec8<\/span><\/p>\n<div>\n<p style=\"margin: 0 0 6px; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Notes:<\/strong><\/p>\n<ul style=\"margin: 0; padding-left: 22px;\">\n<li style=\"margin-bottom: 8px; line-height: 1.9; font-size: 16px; color: #1f2430;\">When updating, you can edit all fields except the status, since the import file has no status column. New employees are created with an active status.<\/li>\n<li style=\"margin-bottom: 8px; line-height: 1.9; font-size: 16px; color: #1f2430;\">If the same code is repeated in the file, the first row is imported and the following rows fail.<\/li>\n<li style=\"margin-bottom: 8px; line-height: 1.9; font-size: 16px; color: #1f2430;\">When updating, if the Official ID in the row belongs to another employee, the row fails with the message <strong style=\"color: #111827;\">Official ID already belongs to another employee.<\/strong> When creating, if the Official ID already exists in the system, the row fails with the message <strong style=\"color: #111827;\">Official ID already exists in the system.<\/strong><\/li>\n<li style=\"margin-bottom: 8px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Only creation rows count against the employee and user slots available in your subscription; update rows do not.<\/li>\n<li style=\"margin-bottom: 8px; line-height: 1.9; font-size: 16px; color: #1f2430;\">The activity log records <strong style=\"color: #111827;\">Employee Created (Import)<\/strong> or <strong style=\"color: #111827;\">Employee Updated (Import)<\/strong>, depending on the operation.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":39,"template":"","categories":[2201,2197],"tags":[27169,27173,26689,26843,27171,4970,23128,26721,26688,27170,27172],"class_list":["post-155136","faq","type-faq","status-publish","hentry","category-employees","category-hr","tag-create-a-new-employee-or-update-an-existing-one","tag-does-the-system-use-the-official-id-for-updates","tag-employee-code","tag-employee-import-file","tag-how-to-update-existing-employees-by-import","tag-human-resources","tag-import-employees","tag-import-employees-from-excel","tag-official-id","tag-update-employee-data-by-import","tag-why-the-system-created-a-new-employee-instead-of-updating"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How does the system decide whether to create a new employee or update an existing one? - Daftra Knowledge Base<\/title>\n<meta name=\"description\" content=\"Learn how the system decides whether to create a new employee or update an existing one when importing employees from a file, using only the employee code, and the Official ID rules.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How does the system decide whether to create a new employee or update an existing one? - Daftra Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"Learn how the system decides whether to create a new employee or update an existing one when importing employees from a file, using only the employee code, and the Official ID rules.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/\" \/>\n<meta property=\"og:site_name\" content=\"Daftra Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-01T14:41:57+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/docs.daftra.com\/en\/#organization\",\"name\":\"Daftra\",\"url\":\"https:\/\/docs.daftra.com\/en\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/docs.daftra.com\/en\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg\",\"contentUrl\":\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg\",\"caption\":\"Daftra\"},\"image\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.daftra.com\/en\/#website\",\"url\":\"https:\/\/docs.daftra.com\/en\/\",\"name\":\"Daftra Knowledge Base\",\"description\":\"Daftra\",\"publisher\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.daftra.com\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/#webpage\",\"url\":\"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/\",\"name\":\"How does the system decide whether to create a new employee or update an existing one? - Daftra Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/#website\"},\"datePublished\":\"2026-11-01T13:53:51+00:00\",\"dateModified\":\"2026-11-01T14:41:57+00:00\",\"description\":\"Learn how the system decides whether to create a new employee or update an existing one when importing employees from a file, using only the employee code, and the Official ID rules.\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.daftra.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How does the system decide whether to create a new employee or update an existing one?\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How does the system decide whether to create a new employee or update an existing one? - Daftra Knowledge Base","description":"Learn how the system decides whether to create a new employee or update an existing one when importing employees from a file, using only the employee code, and the Official ID rules.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/","og_locale":"en_US","og_type":"article","og_title":"How does the system decide whether to create a new employee or update an existing one? - Daftra Knowledge Base","og_description":"Learn how the system decides whether to create a new employee or update an existing one when importing employees from a file, using only the employee code, and the Official ID rules.","og_url":"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/","og_site_name":"Daftra Knowledge Base","article_modified_time":"2026-11-01T14:41:57+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/docs.daftra.com\/en\/#organization","name":"Daftra","url":"https:\/\/docs.daftra.com\/en\/","sameAs":[],"logo":{"@type":"ImageObject","@id":"https:\/\/docs.daftra.com\/en\/#logo","inLanguage":"en-US","url":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg","contentUrl":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg","caption":"Daftra"},"image":{"@id":"https:\/\/docs.daftra.com\/en\/#logo"}},{"@type":"WebSite","@id":"https:\/\/docs.daftra.com\/en\/#website","url":"https:\/\/docs.daftra.com\/en\/","name":"Daftra Knowledge Base","description":"Daftra","publisher":{"@id":"https:\/\/docs.daftra.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.daftra.com\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/#webpage","url":"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/","name":"How does the system decide whether to create a new employee or update an existing one? - Daftra Knowledge Base","isPartOf":{"@id":"https:\/\/docs.daftra.com\/en\/#website"},"datePublished":"2026-11-01T13:53:51+00:00","dateModified":"2026-11-01T14:41:57+00:00","description":"Learn how the system decides whether to create a new employee or update an existing one when importing employees from a file, using only the employee code, and the Official ID rules.","breadcrumb":{"@id":"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.daftra.com\/en\/faq\/how-does-the-system-decide-whether-to-create-a-new-employee-or-update-an-existing-one\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.daftra.com\/en\/"},{"@type":"ListItem","position":2,"name":"How does the system decide whether to create a new employee or update an existing one?"}]}]}},"_links":{"self":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/faq\/155136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/users\/39"}],"version-history":[{"count":2,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/faq\/155136\/revisions"}],"predecessor-version":[{"id":155141,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/faq\/155136\/revisions\/155141"}],"wp:attachment":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/media?parent=155136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/categories?post=155136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tags?post=155136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}