From 1ec2ffe9bebeed7fe1c5d9aa34d468acf43da688 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Thu, 10 Nov 2022 15:35:20 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20ObjectTerritory2Association,=20Acco?= =?UTF-8?q?untShare=E3=81=AE=E5=90=8C=E6=9C=9F=E8=BF=BD=E5=8A=A0=E5=AF=BE?= =?UTF-8?q?=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../last_fetch_datetime/AccountShare_ALL.json | 4 ++ .../ObjectTerritory2Association_ALL.json | 4 ++ .../crm/object_info/crm_object_list_all.json | 40 +++++++++++++++++++ s3/data/crm/settings/CRM_AccountShare_ALL.txt | 13 ++++++ .../crm/settings/CRM_AccountShare_ALL_ex.sql | 1 + .../CRM_ObjectTerritory2Association_ALL.txt | 13 ++++++ ...CRM_ObjectTerritory2Association_ALL_ex.sql | 1 + s3/data/crm/settings/configmap.config | 2 + 8 files changed, 78 insertions(+) create mode 100644 s3/config/crm/last_fetch_datetime/AccountShare_ALL.json create mode 100644 s3/config/crm/last_fetch_datetime/ObjectTerritory2Association_ALL.json create mode 100644 s3/data/crm/settings/CRM_AccountShare_ALL.txt create mode 100644 s3/data/crm/settings/CRM_AccountShare_ALL_ex.sql create mode 100644 s3/data/crm/settings/CRM_ObjectTerritory2Association_ALL.txt create mode 100644 s3/data/crm/settings/CRM_ObjectTerritory2Association_ALL_ex.sql diff --git a/s3/config/crm/last_fetch_datetime/AccountShare_ALL.json b/s3/config/crm/last_fetch_datetime/AccountShare_ALL.json new file mode 100644 index 00000000..7453dc17 --- /dev/null +++ b/s3/config/crm/last_fetch_datetime/AccountShare_ALL.json @@ -0,0 +1,4 @@ +{ + "last_fetch_datetime_from": "1900-01-01T00:00:00.000Z", + "last_fetch_datetime_to": "" +} diff --git a/s3/config/crm/last_fetch_datetime/ObjectTerritory2Association_ALL.json b/s3/config/crm/last_fetch_datetime/ObjectTerritory2Association_ALL.json new file mode 100644 index 00000000..7453dc17 --- /dev/null +++ b/s3/config/crm/last_fetch_datetime/ObjectTerritory2Association_ALL.json @@ -0,0 +1,4 @@ +{ + "last_fetch_datetime_from": "1900-01-01T00:00:00.000Z", + "last_fetch_datetime_to": "" +} diff --git a/s3/config/crm/object_info/crm_object_list_all.json b/s3/config/crm/object_info/crm_object_list_all.json index 28286bab..df6f3d99 100644 --- a/s3/config/crm/object_info/crm_object_list_all.json +++ b/s3/config/crm/object_info/crm_object_list_all.json @@ -65,6 +65,46 @@ "is_update_last_fetch_datetime": false, "last_fetch_datetime_file_name": "Group_ALL.json", "upload_file_name": "CRM_Group_ALL_{execute_datetime}" + }, + + { + "object_name": "ObjectTerritory2Association", + "columns": [ + "Id", + "ObjectId", + "Territory2Id", + "AssociationCause", + "SobjectType", + "IsDeleted", + "LastModifiedDate", + "LastModifiedById", + "SystemModstamp" + ], + "is_skip": false, + "is_update_last_fetch_datetime": false, + "last_fetch_datetime_file_name": "ObjectTerritory2Association_ALL.json", + "upload_file_name": "CRM_ObjectTerritory2Association_ALL_{execute_datetime}" + }, + { + "object_name": "AccountShare", + "columns": [ + "Id", + "AccountId", + "UserOrGroupId", + "AccountAccessLevel", + "OpportunityAccessLevel", + "CaseAccessLevel", + "ContactAccessLevel", + "RowCause", + "LastModifiedDate", + "LastModifiedById", + "IsDeleted" + ], + "is_skip": false, + "is_update_last_fetch_datetime": false, + "datetime_column": "LastModifiedDate", + "last_fetch_datetime_file_name": "AccountShare_ALL.json", + "upload_file_name": "CRM_AccountShare_ALL_{execute_datetime}" } ] } diff --git a/s3/data/crm/settings/CRM_AccountShare_ALL.txt b/s3/data/crm/settings/CRM_AccountShare_ALL.txt new file mode 100644 index 00000000..63176a01 --- /dev/null +++ b/s3/data/crm/settings/CRM_AccountShare_ALL.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +11 +Id,AccountId,UserOrGroupId,AccountAccessLevel,OpportunityAccessLevel,CaseAccessLevel,ContactAccessLevel,RowCause,LastModifiedDate,LastModifiedById,IsDeleted +Id,AccountId,UserOrGroupId,AccountAccessLevel,OpportunityAccessLevel,CaseAccessLevel,ContactAccessLevel,RowCause,LastModifiedDate,LastModifiedById,IsDeleted +src02.crm_AccountShare_all +org02.crm_AccountShare_all +CRM_AccountShare_ALL_ex.sql + diff --git a/s3/data/crm/settings/CRM_AccountShare_ALL_ex.sql b/s3/data/crm/settings/CRM_AccountShare_ALL_ex.sql new file mode 100644 index 00000000..15bea082 --- /dev/null +++ b/s3/data/crm/settings/CRM_AccountShare_ALL_ex.sql @@ -0,0 +1 @@ +CALL src02.crm_data_sync('src02.crm_AccountShare', 'src02.crm_AccountShare_all', 'LastModifiedDate'); \ No newline at end of file diff --git a/s3/data/crm/settings/CRM_ObjectTerritory2Association_ALL.txt b/s3/data/crm/settings/CRM_ObjectTerritory2Association_ALL.txt new file mode 100644 index 00000000..1519b50e --- /dev/null +++ b/s3/data/crm/settings/CRM_ObjectTerritory2Association_ALL.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +9 +Id,ObjectId,Territory2Id,AssociationCause,SobjectType,IsDeleted,LastModifiedDate,LastModifiedById,SystemModstamp +Id,ObjectId,Territory2Id,AssociationCause,SobjectType,IsDeleted,LastModifiedDate,LastModifiedById,SystemModstamp +src02.crm_ObjectTerritory2Association_all +org02.crm_ObjectTerritory2Association_all +CRM_ObjectTerritory2Association_ALL_ex.sql + diff --git a/s3/data/crm/settings/CRM_ObjectTerritory2Association_ALL_ex.sql b/s3/data/crm/settings/CRM_ObjectTerritory2Association_ALL_ex.sql new file mode 100644 index 00000000..da83e1f8 --- /dev/null +++ b/s3/data/crm/settings/CRM_ObjectTerritory2Association_ALL_ex.sql @@ -0,0 +1 @@ +CALL src02.crm_data_sync('src02.crm_ObjectTerritory2Association', 'src02.crm_ObjectTerritory2Association_all', 'SystemModstamp'); \ No newline at end of file diff --git a/s3/data/crm/settings/configmap.config b/s3/data/crm/settings/configmap.config index 51ee768b..9b24ca55 100644 --- a/s3/data/crm/settings/configmap.config +++ b/s3/data/crm/settings/configmap.config @@ -57,3 +57,5 @@ CRM_Sent_Email_vod__c_[0-9]{14}\.(CSV|csv) CRM_Sent_Email_vod__c.txt CRM_Territory2_ALL_[0-9]{14}\.(CSV|csv) CRM_Territory2_ALL.txt CRM_UserTerritory2Association_ALL_[0-9]{14}\.(CSV|csv) CRM_UserTerritory2Association_ALL.txt CRM_Group_ALL_[0-9]{14}\.(CSV|csv) CRM_Group_ALL.txt +CRM_ObjectTerritory2Association_ALL_[0-9]{14}\.(CSV|csv) CRM_ObjectTerritory2Association_ALL.txt +CRM_AccountShare_ALL_[0-9]{14}\.(CSV|csv) CRM_AccountShare_ALL.txt From e97bd39b7b29220c1f639436d1ba50551b2dd3ca Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Thu, 10 Nov 2022 15:46:37 +0900 Subject: [PATCH 2/2] =?UTF-8?q?style:=20=E4=B8=8D=E8=A6=81=E3=81=AA?= =?UTF-8?q?=E6=94=B9=E8=A1=8C=E3=82=92=E9=99=A4=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- s3/config/crm/object_info/crm_object_list_all.json | 1 - 1 file changed, 1 deletion(-) diff --git a/s3/config/crm/object_info/crm_object_list_all.json b/s3/config/crm/object_info/crm_object_list_all.json index df6f3d99..cfd70934 100644 --- a/s3/config/crm/object_info/crm_object_list_all.json +++ b/s3/config/crm/object_info/crm_object_list_all.json @@ -66,7 +66,6 @@ "last_fetch_datetime_file_name": "Group_ALL.json", "upload_file_name": "CRM_Group_ALL_{execute_datetime}" }, - { "object_name": "ObjectTerritory2Association", "columns": [