Update Api.php to correct external_identifier to type STRING
authorhowardshand <howardshand@gmail.com>
Tue, 4 Jul 2023 16:22:17 +0000 (11:22 -0500)
committerGitHub <noreply@github.com>
Tue, 4 Jul 2023 16:22:17 +0000 (11:22 -0500)
CRM/Custom/Import/Parser/Api.php

index cd2ed4edd29f41a932f8b03839b5c1eb00a14db2..8ccef384a3ed7729b21a97b5dead822ab1263997 100644 (file)
@@ -83,7 +83,7 @@ class CRM_Custom_Import_Parser_Api extends CRM_Import_Parser {
       $this->importableFieldsMetadata = array_merge([
         'do_not_import' => ['title' => ts('- do not import -')],
         'contact_id' => ['title' => ts('Contact ID'), 'name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'options' => FALSE, 'headerPattern' => '/contact?|id$/i'],
-        'external_identifier' => ['title' => ts('External Identifier'), 'name' => 'external_identifier', 'type' => CRM_Utils_Type::T_INT, 'options' => FALSE, 'headerPattern' => '/external\s?id/i'],
+        'external_identifier' => ['title' => ts('External Identifier'), 'name' => 'external_identifier', 'type' => CRM_Utils_Type::T_STRING, 'options' => FALSE, 'headerPattern' => '/external\s?id/i'],
       ], $importableFields);
     }
   }