From 014385379c00eb77805f0ac2d826c66683d00ced Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Thu, 14 Jul 2022 14:51:24 +0900 Subject: [PATCH 01/22] =?UTF-8?q?feat:crm=5Fhistory=E3=81=AE=E6=96=B0?= =?UTF-8?q?=E8=A6=8F=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 rds_mysql/stored_procedure/crm_history.sql diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql new file mode 100644 index 00000000..cf2ca1d8 --- /dev/null +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -0,0 +1,24 @@ +-- A5M2で実行時にSQL区切り文字を「;」以外にすること + +CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) +BEGIN + SET @new_history_save = 'UPDATE @@target_table SET start_datetime = @@target_column, end_datetime = "9999-12-31 00:00:00" WHERE start_datetime IS NULL AND end_datetime IS NULL'; + SET @new_history_save = REPLACE(@new_history_save, "@@target_table", target_table); + SET @new_history_save = REPLACE(@new_history_save, "@@target_column", target_column); + PREPARE new_history_save_stmt from @new_history_save; + EXECUTE new_history_save_stmt; + + SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id'; + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); + PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; + EXECUTE make_history_tmp_create_stmt; + + SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NULL'; + SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); + PREPARE update_end_datetime_stmt from @update_end_datetime; + EXECUTE update_end_datetime_stmt; + + DROP TEMPORARY TABLE make_history_tmp; +END \ No newline at end of file From a89762eb0d0231de2e487becdd99443f3912d2e7 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Fri, 15 Jul 2022 09:35:55 +0900 Subject: [PATCH 02/22] =?UTF-8?q?refactor:=E3=82=B3=E3=83=A1=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=81=AE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index cf2ca1d8..3247da51 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -2,23 +2,27 @@ CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN + -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = 'UPDATE @@target_table SET start_datetime = @@target_column, end_datetime = "9999-12-31 00:00:00" WHERE start_datetime IS NULL AND end_datetime IS NULL'; SET @new_history_save = REPLACE(@new_history_save, "@@target_table", target_table); SET @new_history_save = REPLACE(@new_history_save, "@@target_column", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; + -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id'; SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; EXECUTE make_history_tmp_create_stmt; + -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NULL'; SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; + -- ②-3 「②-1」で作成した一時テーブルを削除する DROP TEMPORARY TABLE make_history_tmp; END \ No newline at end of file From e24d299cb8acc449db88523810f575702aa7082e Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Fri, 15 Jul 2022 10:44:06 +0900 Subject: [PATCH 03/22] =?UTF-8?q?fix:=E4=B8=80=E6=99=82=E3=83=86=E3=83=BC?= =?UTF-8?q?=E3=83=96=E3=83=AB=E4=BD=9C=E6=88=90=E6=99=82=E3=81=AE=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E3=83=9F=E3=82=B9=E3=82=92=E4=BF=AE=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 3247da51..caeb09c0 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -10,7 +10,7 @@ BEGIN EXECUTE new_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 - SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id'; + SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id HAVING count(id) = 2'; SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; From d165cf20ba8a84f6152eadd9d442d2a656342b11 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Fri, 15 Jul 2022 14:23:49 +0900 Subject: [PATCH 04/22] =?UTF-8?q?fix:=20=E2=91=A1-2=E3=81=AE=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E3=83=9F=E3=82=B9=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index caeb09c0..7c183714 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -17,7 +17,7 @@ BEGIN EXECUTE make_history_tmp_create_stmt; -- ②-2 「②-1」で取得した全件に更新処理を行う - SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NULL'; + SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NOT NULL'; SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; From 9a62a7eb5869afe60280b135e006835feecc04e0 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Wed, 20 Jul 2022 09:01:48 +0900 Subject: [PATCH 05/22] =?UTF-8?q?fix:=E3=83=AC=E3=83=93=E3=83=A5=E3=83=BC?= =?UTF-8?q?=E6=8C=87=E6=91=98=E4=BF=AE=E6=AD=A3=E3=80=81=E4=BE=8B=E5=A4=96?= =?UTF-8?q?=E5=87=A6=E7=90=86=E3=81=AE=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 54 +++++++++++++++++++--- 1 file changed, 48 insertions(+), 6 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 7c183714..f9057a5e 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -1,28 +1,70 @@ -- A5M2で実行時にSQL区切り文字を「;」以外にすること - CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN + -- 例外処理 + -- エラーが発生した場合に一時テーブルの削除を実施 + DECLARE EXIT HANDLER FOR SQLEXCEPTION + BEGIN + GET DIAGNOSTICS CONDITION 1 + @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; + DROP TEMPORARY TABLE IF EXISTS make_history_tmp; + SIGNAL SQLSTATE '45000' + SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; + END; + -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する - SET @new_history_save = 'UPDATE @@target_table SET start_datetime = @@target_column, end_datetime = "9999-12-31 00:00:00" WHERE start_datetime IS NULL AND end_datetime IS NULL'; + SET @new_history_save = ' + UPDATE @@target_table + SET + start_datetime = @@target_column + , end_datetime = "9999-12-31 00:00:00" + WHERE + start_datetime IS NULL + AND end_datetime IS NULL + '; SET @new_history_save = REPLACE(@new_history_save, "@@target_table", target_table); SET @new_history_save = REPLACE(@new_history_save, "@@target_column", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 - SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id HAVING count(id) = 2'; + SET @make_history_tmp_create = ' + CREATE TEMPORARY TABLE make_history_tmp + SELECT + id + , MIN(@@target_column) AS min_start_datetime + , MAX(start_datetime) AS max_start_datetime + FROM + @@target_table + WHERE + end_datetime = "9999-12-31 00:00:00" + GROUP BY + id + HAVING + count(id) = 2 + '; SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; EXECUTE make_history_tmp_create_stmt; -- ②-2 「②-1」で取得した全件に更新処理を行う - SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NOT NULL'; + SET @update_end_datetime = ' + UPDATE @@target_table tt + LEFT JOIN make_history_tmp mht + ON tt.id = mht.id + AND tt.start_datetime = mht.min_start_datetime + SET + start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND + WHERE + mht.id IS NOT NULL + '; SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); + SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; -- ②-3 「②-1」で作成した一時テーブルを削除する DROP TEMPORARY TABLE make_history_tmp; + END \ No newline at end of file From 085d561371a60e9fd8031485489ce6e8004d51f2 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Wed, 20 Jul 2022 11:26:58 +0900 Subject: [PATCH 06/22] =?UTF-8?q?refactor:=E5=8D=8A=E8=A7=92=E3=82=B9?= =?UTF-8?q?=E3=83=9A=E3=83=BC=E3=82=B9=E3=82=92=E3=82=BF=E3=83=96=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index f9057a5e..794abe38 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -9,15 +9,15 @@ BEGIN @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; DROP TEMPORARY TABLE IF EXISTS make_history_tmp; SIGNAL SQLSTATE '45000' - SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; + SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; END; -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = ' UPDATE @@target_table SET - start_datetime = @@target_column - , end_datetime = "9999-12-31 00:00:00" + start_datetime = @@target_column + , end_datetime = "9999-12-31 00:00:00" WHERE start_datetime IS NULL AND end_datetime IS NULL From 0079d1110c54d1da43b12e69b3028840c20b2ff7 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Wed, 20 Jul 2022 13:58:59 +0900 Subject: [PATCH 07/22] =?UTF-8?q?refactor:@@=E3=81=8B=E3=82=89=E5=A7=8B?= =?UTF-8?q?=E3=81=BE=E3=82=8B=E6=96=87=E5=AD=97=E3=81=AE=E8=AA=AC=E6=98=8E?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 794abe38..0777912f 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -1,4 +1,5 @@ -- A5M2で実行時にSQL区切り文字を「;」以外にすること +-- @@から始まる文字は後からREPLACEする文字を示す独自ルール CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN -- 例外処理 From e96d8be181dd03e3d36550e6a7fb8a1db38a7d30 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Wed, 20 Jul 2022 15:40:14 +0900 Subject: [PATCH 08/22] =?UTF-8?q?fix:=E4=B8=8D=E8=B6=B3=E9=A0=85=E7=9B=AE?= =?UTF-8?q?=E3=81=A8=E8=A8=AD=E5=AE=9A=E9=A0=85=E7=9B=AE=E3=83=9F=E3=82=B9?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 0777912f..00279493 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -18,7 +18,9 @@ BEGIN UPDATE @@target_table SET start_datetime = @@target_column - , end_datetime = "9999-12-31 00:00:00" + , end_datetime = "9999-12-31 00:00:00" + , upd_user = CURRENT_USER() + , upd_date = CURRENT_TIMESTAMP() WHERE start_datetime IS NULL AND end_datetime IS NULL @@ -56,7 +58,9 @@ BEGIN ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET - start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND + end_datetime = mht.max_start_datetime - INTERVAL 1 SECOND + , upd_user = CURRENT_USER() + , upd_date = CURRENT_TIMESTAMP() WHERE mht.id IS NOT NULL '; From e2609471aed60b30deac3546cb86fd3e38113007 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Wed, 20 Jul 2022 18:36:34 +0900 Subject: [PATCH 09/22] =?UTF-8?q?refactor:@@=E2=86=92$$=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4=E3=80=81=E4=B8=80=E6=99=82=E3=83=86=E3=83=BC=E3=83=96?= =?UTF-8?q?=E3=83=AB=E3=81=AE=E3=83=86=E3=83=BC=E3=83=96=E3=83=AB=E5=90=8D?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E3=80=81DEALLOCATE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 45 ++++++++++++++-------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 00279493..a83cc581 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -1,5 +1,5 @@ -- A5M2で実行時にSQL区切り文字を「;」以外にすること --- @@から始まる文字は後からREPLACEする文字を示す独自ルール +-- $$から始まる文字は後からREPLACEする文字を示す独自ルール CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN -- 例外処理 @@ -8,16 +8,25 @@ BEGIN BEGIN GET DIAGNOSTICS CONDITION 1 @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; - DROP TEMPORARY TABLE IF EXISTS make_history_tmp; + EXECUTE drop_tmp_table; + DEALLOCATE PREPARE drop_tmp_table; SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; END; + -- ②-3で利用する一時テーブル削除のSQLを準備 + -- 例外処理でも利用するため先に記述 + SET @drop_tmp_table = ' + DROP TEMPORARY TABLE IF EXISTS make_history_tmp_$$target_table + '; + SET @drop_tmp_table = REPLACE(@drop_tmp_table, "$$target_table", target_table); + PREPARE new_history_save_stmt from @drop_tmp_table; + -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = ' - UPDATE @@target_table + UPDATE $$target_table SET - start_datetime = @@target_column + start_datetime = $$target_column , end_datetime = "9999-12-31 00:00:00" , upd_user = CURRENT_USER() , upd_date = CURRENT_TIMESTAMP() @@ -25,20 +34,21 @@ BEGIN start_datetime IS NULL AND end_datetime IS NULL '; - SET @new_history_save = REPLACE(@new_history_save, "@@target_table", target_table); - SET @new_history_save = REPLACE(@new_history_save, "@@target_column", target_column); + SET @new_history_save = REPLACE(@new_history_save, "$$target_table", target_table); + SET @new_history_save = REPLACE(@new_history_save, "$$target_column", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; + DEALLOCATE PREPARE ew_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 SET @make_history_tmp_create = ' - CREATE TEMPORARY TABLE make_history_tmp + CREATE TEMPORARY TABLE make_history_tmp_$$target_table SELECT id - , MIN(@@target_column) AS min_start_datetime + , MIN($$target_column) AS min_start_datetime , MAX(start_datetime) AS max_start_datetime FROM - @@target_table + $$target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY @@ -46,15 +56,16 @@ BEGIN HAVING count(id) = 2 '; - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_table", target_table); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_column", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; EXECUTE make_history_tmp_create_stmt; + DEALLOCATE PREPARE make_history_tmp_create_stmt; -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' - UPDATE @@target_table tt - LEFT JOIN make_history_tmp mht + UPDATE $$target_table tt + LEFT JOIN make_history_tmp_$$target_table mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET @@ -64,12 +75,14 @@ BEGIN WHERE mht.id IS NOT NULL '; - SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; + DEALLOCATE PREPARE update_end_datetime_stmt; -- ②-3 「②-1」で作成した一時テーブルを削除する - DROP TEMPORARY TABLE make_history_tmp; + EXECUTE drop_tmp_table; + DEALLOCATE PREPARE drop_tmp_table; END \ No newline at end of file From 611acb6a3722499a874476bc52e29e67636f5e15 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Thu, 21 Jul 2022 09:31:40 +0900 Subject: [PATCH 10/22] =?UTF-8?q?refactor:=E4=B8=80=E6=99=82=E3=83=86?= =?UTF-8?q?=E3=83=BC=E3=83=96=E3=83=AB=E5=90=8D=E3=81=AE=E5=A4=89=E6=9B=B4?= =?UTF-8?q?=E3=80=81=E7=B4=B0=E3=81=8B=E3=81=84=E3=83=9F=E3=82=B9=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index a83cc581..f361a850 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -8,19 +8,19 @@ BEGIN BEGIN GET DIAGNOSTICS CONDITION 1 @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; - EXECUTE drop_tmp_table; - DEALLOCATE PREPARE drop_tmp_table; + EXECUTE drop_tmp_table_stmt; + DEALLOCATE PREPARE drop_tmp_table_stmt; SIGNAL SQLSTATE '45000' - SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; + SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; END; -- ②-3で利用する一時テーブル削除のSQLを準備 -- 例外処理でも利用するため先に記述 SET @drop_tmp_table = ' - DROP TEMPORARY TABLE IF EXISTS make_history_tmp_$$target_table + DROP TEMPORARY TABLE IF EXISTS $$target_table_make_history_tmp '; SET @drop_tmp_table = REPLACE(@drop_tmp_table, "$$target_table", target_table); - PREPARE new_history_save_stmt from @drop_tmp_table; + PREPARE drop_tmp_table_stmt from @drop_tmp_table; -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = ' @@ -38,11 +38,11 @@ BEGIN SET @new_history_save = REPLACE(@new_history_save, "$$target_column", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; - DEALLOCATE PREPARE ew_history_save_stmt; + DEALLOCATE PREPARE new_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 SET @make_history_tmp_create = ' - CREATE TEMPORARY TABLE make_history_tmp_$$target_table + CREATE TEMPORARY TABLE $$target_table_make_history_tmp SELECT id , MIN($$target_column) AS min_start_datetime @@ -65,7 +65,7 @@ BEGIN -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' UPDATE $$target_table tt - LEFT JOIN make_history_tmp_$$target_table mht + LEFT JOIN $$target_table_make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET @@ -82,7 +82,7 @@ BEGIN DEALLOCATE PREPARE update_end_datetime_stmt; -- ②-3 「②-1」で作成した一時テーブルを削除する - EXECUTE drop_tmp_table; - DEALLOCATE PREPARE drop_tmp_table; + EXECUTE drop_tmp_table_stmt; + DEALLOCATE PREPARE drop_tmp_table_stmt; END \ No newline at end of file From c62db70d9a00ceea5c1b233a1ad1f543290d4a1e Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Thu, 21 Jul 2022 10:14:16 +0900 Subject: [PATCH 11/22] =?UTF-8?q?fix:=E3=83=88=E3=83=A9=E3=83=B3=E3=82=B6?= =?UTF-8?q?=E3=82=AF=E3=82=B7=E3=83=A7=E3=83=B3=E5=87=A6=E7=90=86=E3=81=AE?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index f361a850..7573bf9b 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -10,10 +10,13 @@ BEGIN @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; EXECUTE drop_tmp_table_stmt; DEALLOCATE PREPARE drop_tmp_table_stmt; + ROLLBACK; SIGNAL SQLSTATE '45000' SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; END; + START TRANSACTION; + -- ②-3で利用する一時テーブル削除のSQLを準備 -- 例外処理でも利用するため先に記述 SET @drop_tmp_table = ' @@ -85,4 +88,6 @@ BEGIN EXECUTE drop_tmp_table_stmt; DEALLOCATE PREPARE drop_tmp_table_stmt; + COMMIT; + END \ No newline at end of file From 805dfb26de33e64c40b5301abbb442b329b961c8 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Thu, 21 Jul 2022 13:30:26 +0900 Subject: [PATCH 12/22] =?UTF-8?q?refactor:=E4=B8=A6=E5=88=97=E5=87=A6?= =?UTF-8?q?=E7=90=86=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E3=82=B3=E3=83=A1?= =?UTF-8?q?=E3=83=B3=E3=83=88=E8=BF=BD=E5=8A=A0=E3=80=81=E4=BE=8B=E5=A4=96?= =?UTF-8?q?=E3=81=A7=E4=BD=BF=E7=94=A8=E3=81=99=E3=82=8B=E3=83=A6=E3=83=BC?= =?UTF-8?q?=E3=82=B6=E5=A4=89=E6=95=B0=E3=81=AE=E5=88=9D=E6=9C=9F=E5=8C=96?= =?UTF-8?q?=E3=80=81$$=E7=B5=82=E7=AB=AF=E6=96=87=E5=AD=97=E3=81=AE?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 34 ++++++++++++---------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 7573bf9b..b60e2681 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -1,5 +1,6 @@ -- A5M2で実行時にSQL区切り文字を「;」以外にすること --- $$から始まる文字は後からREPLACEする文字を示す独自ルール +-- $$から始まり$$で終わる文字は後からREPLACEする文字を示す独自ルール +-- crm_historyストアドプロシージャは、同一セッション内での並列処理を実行することができない CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN -- 例外処理 @@ -15,21 +16,22 @@ BEGIN SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; END; + SET @error_state = NULL, @error_msg = NULL; START TRANSACTION; -- ②-3で利用する一時テーブル削除のSQLを準備 -- 例外処理でも利用するため先に記述 SET @drop_tmp_table = ' - DROP TEMPORARY TABLE IF EXISTS $$target_table_make_history_tmp + DROP TEMPORARY TABLE IF EXISTS $$target_table$$_make_history_tmp '; - SET @drop_tmp_table = REPLACE(@drop_tmp_table, "$$target_table", target_table); + SET @drop_tmp_table = REPLACE(@drop_tmp_table, "$$target_table$$", target_table); PREPARE drop_tmp_table_stmt from @drop_tmp_table; -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = ' - UPDATE $$target_table + UPDATE $$target_table$$ SET - start_datetime = $$target_column + start_datetime = $$target_column$$ , end_datetime = "9999-12-31 00:00:00" , upd_user = CURRENT_USER() , upd_date = CURRENT_TIMESTAMP() @@ -37,21 +39,21 @@ BEGIN start_datetime IS NULL AND end_datetime IS NULL '; - SET @new_history_save = REPLACE(@new_history_save, "$$target_table", target_table); - SET @new_history_save = REPLACE(@new_history_save, "$$target_column", target_column); + SET @new_history_save = REPLACE(@new_history_save, "$$target_table$$", target_table); + SET @new_history_save = REPLACE(@new_history_save, "$$target_column$$", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; DEALLOCATE PREPARE new_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 SET @make_history_tmp_create = ' - CREATE TEMPORARY TABLE $$target_table_make_history_tmp + CREATE TEMPORARY TABLE $$target_table$$_make_history_tmp SELECT id - , MIN($$target_column) AS min_start_datetime + , MIN($$target_column$$) AS min_start_datetime , MAX(start_datetime) AS max_start_datetime FROM - $$target_table + $$target_table$$ WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY @@ -59,16 +61,16 @@ BEGIN HAVING count(id) = 2 '; - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_table", target_table); - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_column", target_column); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_table$$", target_table); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_column$$", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; EXECUTE make_history_tmp_create_stmt; DEALLOCATE PREPARE make_history_tmp_create_stmt; -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' - UPDATE $$target_table tt - LEFT JOIN $$target_table_make_history_tmp mht + UPDATE $$target_table$$ tt + LEFT JOIN $$target_table$$_make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET @@ -78,8 +80,8 @@ BEGIN WHERE mht.id IS NOT NULL '; - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column", target_column); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; DEALLOCATE PREPARE update_end_datetime_stmt; From 9b8076451f14b1ec07d5751d47cb79bbc1b709db Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Fri, 22 Jul 2022 15:56:43 +0900 Subject: [PATCH 13/22] =?UTF-8?q?feat:crm=5Fdata=5Fsync=E3=81=AE=E6=96=B0?= =?UTF-8?q?=E8=A6=8F=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 rds_mysql/stored_procedure/crm_data_sync.sql diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql new file mode 100644 index 00000000..c039a18a --- /dev/null +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -0,0 +1,41 @@ +-- A5M2で実行時にSQL区切り文字を「;」以外にすること +-- $$から始まる文字は後からREPLACEする文字を示す独自ルール +-- crm_data_syncストアドプロシージャは、同一セッション内での並列処理を実行することができない +CREATE PROCEDURE crm_data_sync(target_table VARCHAR(255), target_table_all VARCHAR(255), target_column VARCHAR(255)) +BEGIN + -- 例外処理 + -- エラーが発生した場合に一時テーブルの削除を実施 + DECLARE EXIT HANDLER FOR SQLEXCEPTION + BEGIN + GET DIAGNOSTICS CONDITION 1 + @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; + ROLLBACK; + SIGNAL SQLSTATE '45000' + SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; + END; + + SET @error_state = NULL, @error_msg = NULL; + START TRANSACTION; + + -- ①-1 Salesforce側で物理削除されたデータを検出し更新する + SET @update_end_datetime = ' + UPDATE $$target_table$$ tt + LEFT JOIN $$target_table_all$$ tta + ON tt.id = tta.id + AND tt.$$target_column$$ = tta.$$target_column$$ + SET + tt.end_datetime = CURRENT_TIMESTAMP() + , tt.upd_user = CURRENT_USER() + , tt.upd_date = CURRENT_TIMESTAMP() + WHERE + tta.id IS NULL + AND tt.end_datetime = "9999-12-31 00:00:00" + '; + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); + PREPARE update_end_datetime_stmt from @update_end_datetime; + EXECUTE update_end_datetime_stmt; + + COMMIT; +END \ No newline at end of file From af957662e92dda984f4930715afd0c3989694f18 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Fri, 22 Jul 2022 15:58:11 +0900 Subject: [PATCH 14/22] =?UTF-8?q?Revert=20"feat:crm=5Fdata=5Fsync=E3=81=AE?= =?UTF-8?q?=E6=96=B0=E8=A6=8F=E4=BD=9C=E6=88=90"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 9b8076451f14b1ec07d5751d47cb79bbc1b709db. --- rds_mysql/stored_procedure/crm_data_sync.sql | 41 -------------------- 1 file changed, 41 deletions(-) delete mode 100644 rds_mysql/stored_procedure/crm_data_sync.sql diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql deleted file mode 100644 index c039a18a..00000000 --- a/rds_mysql/stored_procedure/crm_data_sync.sql +++ /dev/null @@ -1,41 +0,0 @@ --- A5M2で実行時にSQL区切り文字を「;」以外にすること --- $$から始まる文字は後からREPLACEする文字を示す独自ルール --- crm_data_syncストアドプロシージャは、同一セッション内での並列処理を実行することができない -CREATE PROCEDURE crm_data_sync(target_table VARCHAR(255), target_table_all VARCHAR(255), target_column VARCHAR(255)) -BEGIN - -- 例外処理 - -- エラーが発生した場合に一時テーブルの削除を実施 - DECLARE EXIT HANDLER FOR SQLEXCEPTION - BEGIN - GET DIAGNOSTICS CONDITION 1 - @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; - ROLLBACK; - SIGNAL SQLSTATE '45000' - SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; - END; - - SET @error_state = NULL, @error_msg = NULL; - START TRANSACTION; - - -- ①-1 Salesforce側で物理削除されたデータを検出し更新する - SET @update_end_datetime = ' - UPDATE $$target_table$$ tt - LEFT JOIN $$target_table_all$$ tta - ON tt.id = tta.id - AND tt.$$target_column$$ = tta.$$target_column$$ - SET - tt.end_datetime = CURRENT_TIMESTAMP() - , tt.upd_user = CURRENT_USER() - , tt.upd_date = CURRENT_TIMESTAMP() - WHERE - tta.id IS NULL - AND tt.end_datetime = "9999-12-31 00:00:00" - '; - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); - PREPARE update_end_datetime_stmt from @update_end_datetime; - EXECUTE update_end_datetime_stmt; - - COMMIT; -END \ No newline at end of file From 4a73e14bbfb71f6fa32b8f6bbba8696a8b4363d6 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Fri, 22 Jul 2022 16:00:57 +0900 Subject: [PATCH 15/22] =?UTF-8?q?feat:crm=5Fdata=5Fsync=E3=81=AE=E6=96=B0?= =?UTF-8?q?=E8=A6=8F=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 rds_mysql/stored_procedure/crm_data_sync.sql diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql new file mode 100644 index 00000000..c039a18a --- /dev/null +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -0,0 +1,41 @@ +-- A5M2で実行時にSQL区切り文字を「;」以外にすること +-- $$から始まる文字は後からREPLACEする文字を示す独自ルール +-- crm_data_syncストアドプロシージャは、同一セッション内での並列処理を実行することができない +CREATE PROCEDURE crm_data_sync(target_table VARCHAR(255), target_table_all VARCHAR(255), target_column VARCHAR(255)) +BEGIN + -- 例外処理 + -- エラーが発生した場合に一時テーブルの削除を実施 + DECLARE EXIT HANDLER FOR SQLEXCEPTION + BEGIN + GET DIAGNOSTICS CONDITION 1 + @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; + ROLLBACK; + SIGNAL SQLSTATE '45000' + SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; + END; + + SET @error_state = NULL, @error_msg = NULL; + START TRANSACTION; + + -- ①-1 Salesforce側で物理削除されたデータを検出し更新する + SET @update_end_datetime = ' + UPDATE $$target_table$$ tt + LEFT JOIN $$target_table_all$$ tta + ON tt.id = tta.id + AND tt.$$target_column$$ = tta.$$target_column$$ + SET + tt.end_datetime = CURRENT_TIMESTAMP() + , tt.upd_user = CURRENT_USER() + , tt.upd_date = CURRENT_TIMESTAMP() + WHERE + tta.id IS NULL + AND tt.end_datetime = "9999-12-31 00:00:00" + '; + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); + PREPARE update_end_datetime_stmt from @update_end_datetime; + EXECUTE update_end_datetime_stmt; + + COMMIT; +END \ No newline at end of file From 8f65e0f87f56643efcf0a027b09f5d22b1ad75c6 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 25 Jul 2022 15:07:41 +0900 Subject: [PATCH 16/22] =?UTF-8?q?refactor:=E2=91=A1-2=E5=86=85=E9=83=A8?= =?UTF-8?q?=E7=B5=90=E5=90=88=E3=81=AB=E5=A4=89=E6=9B=B4=E3=81=97Where?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index b60e2681..366cde70 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -70,15 +70,13 @@ BEGIN -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' UPDATE $$target_table$$ tt - LEFT JOIN $$target_table$$_make_history_tmp mht + JOIN $$target_table$$_make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET end_datetime = mht.max_start_datetime - INTERVAL 1 SECOND , upd_user = CURRENT_USER() , upd_date = CURRENT_TIMESTAMP() - WHERE - mht.id IS NOT NULL '; SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); From 016e4465e5ac3576aa023962205d055464bb13eb Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 26 Jul 2022 10:32:23 +0900 Subject: [PATCH 17/22] =?UTF-8?q?refactor:EXISTS=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 21 ++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql index c039a18a..01d27b9a 100644 --- a/rds_mysql/stored_procedure/crm_data_sync.sql +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -20,16 +20,21 @@ BEGIN -- ①-1 Salesforce側で物理削除されたデータを検出し更新する SET @update_end_datetime = ' UPDATE $$target_table$$ tt - LEFT JOIN $$target_table_all$$ tta - ON tt.id = tta.id - AND tt.$$target_column$$ = tta.$$target_column$$ SET - tt.end_datetime = CURRENT_TIMESTAMP() - , tt.upd_user = CURRENT_USER() - , tt.upd_date = CURRENT_TIMESTAMP() + tt.end_datetime = CURRENT_TIMESTAMP () + , tt.upd_user = CURRENT_USER () + , tt.upd_date = CURRENT_TIMESTAMP () WHERE - tta.id IS NULL - AND tt.end_datetime = "9999-12-31 00:00:00" + tt.end_datetime = "9999-12-31 00:00:00" + AND NOT EXISTS ( + SELECT + * + FROM + $$target_table_all$$ tta + WHERE + tt.id = tta.id + AND tt.$$target_column$$ = tta.$$target_column$$ + ) '; SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); From d04af5c6443d8a1b61168f700e202ea4fbbb6f74 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 26 Jul 2022 11:29:00 +0900 Subject: [PATCH 18/22] =?UTF-8?q?refactor:INNER=E3=82=92=E6=98=8E=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E3=81=AB=E8=A8=98=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 366cde70..10bb0095 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -70,7 +70,7 @@ BEGIN -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' UPDATE $$target_table$$ tt - JOIN $$target_table$$_make_history_tmp mht + INNER JOIN $$target_table$$_make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET From 76750b86b3e8f76ef340f2814cf5240c58bab7bf Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 26 Jul 2022 11:33:32 +0900 Subject: [PATCH 19/22] =?UTF-8?q?refactor:EXISTS=E3=81=AE=E4=B8=AD?= =?UTF-8?q?=E8=BA=AB=E3=81=AESELECT=E5=8F=A5=E3=82=92ID=E3=81=AE=E3=81=BF?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql index 01d27b9a..155bfb99 100644 --- a/rds_mysql/stored_procedure/crm_data_sync.sql +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -28,7 +28,7 @@ BEGIN tt.end_datetime = "9999-12-31 00:00:00" AND NOT EXISTS ( SELECT - * + tt.id FROM $$target_table_all$$ tta WHERE @@ -37,8 +37,8 @@ BEGIN ) '; SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; From 66b79a3115b35a84a6aaf9867567233985d3559d Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 26 Jul 2022 11:43:03 +0900 Subject: [PATCH 20/22] =?UTF-8?q?refactor:=E5=8F=82=E7=85=A7ID=E3=82=92tta?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql index 155bfb99..e9986c0f 100644 --- a/rds_mysql/stored_procedure/crm_data_sync.sql +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -28,7 +28,7 @@ BEGIN tt.end_datetime = "9999-12-31 00:00:00" AND NOT EXISTS ( SELECT - tt.id + tta.id FROM $$target_table_all$$ tta WHERE From 49a589478ac61b318035d7628cf48683bdef2e49 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Thu, 28 Jul 2022 11:55:36 +0900 Subject: [PATCH 21/22] =?UTF-8?q?feat:CRM=E3=81=AE=E6=8B=A1=E5=BC=B5SQL?= =?UTF-8?q?=E3=80=81=E8=A8=AD=E5=AE=9A=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- s3/data/crm/settings/CRM_Account.txt | 13 +++++ s3/data/crm/settings/CRM_AccountShare.txt | 13 +++++ s3/data/crm/settings/CRM_AccountShare_ex.sql | 1 + .../CRM_Account_Territory_Loader_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Account_ex.sql | 1 + .../settings/CRM_Approved_Document_vod__c.txt | 13 +++++ .../crm/settings/CRM_Call2_Detail_vod__c.txt | 13 +++++ .../settings/CRM_Call2_Discussion_vod__c.txt | 13 +++++ .../settings/CRM_Call2_Key_Message_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Call2_vod__c.txt | 13 +++++ .../settings/CRM_Call_Clickstream_vod__c.txt | 13 +++++ .../crm/settings/CRM_Child_Account_vod__c.txt | 13 +++++ .../settings/CRM_Child_Account_vod__c_ex.sql | 1 + .../CRM_Clm_Presentation_Slide_vod__c.txt | 13 +++++ .../settings/CRM_Clm_Presentation_vod__c.txt | 13 +++++ .../settings/CRM_Coaching_Report_vod__c.txt | 13 +++++ .../settings/CRM_Consent_Header_vod__c.txt | 13 +++++ .../crm/settings/CRM_Consent_Line_vod__c.txt | 13 +++++ .../crm/settings/CRM_Consent_Type_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Contact.txt | 13 +++++ s3/data/crm/settings/CRM_Contact_ex.sql | 1 + ...Dynamic_Attribute_Configuration_vod__c.txt | 13 +++++ .../settings/CRM_Dynamic_Attribute_vod__c.txt | 13 +++++ .../settings/CRM_Email_Activity_vod__c.txt | 13 +++++ .../settings/CRM_Event_Attendee_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Group.txt | 13 +++++ s3/data/crm/settings/CRM_Group_ex.sql | 1 + .../crm/settings/CRM_Key_Message_vod__c.txt | 13 +++++ .../CRM_MSJ_Hospital_Medical_Regimen__c.txt | 13 +++++ .../CRM_MSJ_Inquiry_Assignment__c.txt | 13 +++++ .../settings/CRM_MSJ_MR_Weekly_Report__c.txt | 13 +++++ .../CRM_MSJ_Medical_Event_Evaluation__c.txt | 13 +++++ .../settings/CRM_MSJ_Medical_Regimen__c.txt | 13 +++++ s3/data/crm/settings/CRM_MSJ_Patient__c.txt | 13 +++++ .../crm/settings/CRM_Medical_Event_vod__c.txt | 13 +++++ .../settings/CRM_Medical_Inquiry_vod__c.txt | 13 +++++ .../settings/CRM_Medical_Insight_vod__c.txt | 13 +++++ .../CRM_Multichannel_Activity_Line_vod__c.txt | 13 +++++ .../CRM_Multichannel_Activity_vod__c.txt | 13 +++++ .../CRM_Multichannel_Consent_vod__c.txt | 13 +++++ .../settings/CRM_My_Setup_Products_vod__c.txt | 13 +++++ .../CRM_ObjectTerritory2Association.txt | 13 +++++ .../CRM_ObjectTerritory2Association_ex.sql | 1 + .../crm/settings/CRM_Product_Group_vod__c.txt | 13 +++++ .../settings/CRM_Product_Metrics_vod__c.txt | 13 +++++ .../CRM_Product_Metrics_vod__c_ex.sql | 1 + s3/data/crm/settings/CRM_Product_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Profile.txt | 13 +++++ s3/data/crm/settings/CRM_Profile_ex.sql | 1 + .../settings/CRM_Question_Response_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_RecordType.txt | 13 +++++ .../settings/CRM_Remote_Meeting_vod__c.txt | 13 +++++ .../crm/settings/CRM_Sent_Email_vod__c.txt | 13 +++++ .../crm/settings/CRM_Sent_Fragment_vod__c.txt | 13 +++++ .../settings/CRM_Survey_Question_vod__c.txt | 13 +++++ .../crm/settings/CRM_Survey_Target_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Survey_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Territory2.txt | 13 +++++ s3/data/crm/settings/CRM_Territory2_ALL.txt | 14 +++++ s3/data/crm/settings/CRM_Territory2_ex.sql | 2 + .../CRM_Time_Off_Territory_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_User.txt | 13 +++++ s3/data/crm/settings/CRM_UserRole.txt | 13 +++++ .../CRM_UserTerritory2Association.txt | 13 +++++ .../CRM_UserTerritory2Association_ALL.txt | 14 +++++ .../CRM_UserTerritory2Association_ex.sql | 2 + s3/data/crm/settings/configmap.config | 58 +++++++++++++++++++ 67 files changed, 800 insertions(+) create mode 100644 s3/data/crm/settings/CRM_Account.txt create mode 100644 s3/data/crm/settings/CRM_AccountShare.txt create mode 100644 s3/data/crm/settings/CRM_AccountShare_ex.sql create mode 100644 s3/data/crm/settings/CRM_Account_Territory_Loader_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Account_ex.sql create mode 100644 s3/data/crm/settings/CRM_Approved_Document_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call2_Detail_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call2_Discussion_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call2_Key_Message_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call2_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call_Clickstream_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Child_Account_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Child_Account_vod__c_ex.sql create mode 100644 s3/data/crm/settings/CRM_Clm_Presentation_Slide_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Clm_Presentation_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Coaching_Report_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Consent_Header_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Consent_Line_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Consent_Type_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Contact.txt create mode 100644 s3/data/crm/settings/CRM_Contact_ex.sql create mode 100644 s3/data/crm/settings/CRM_Dynamic_Attribute_Configuration_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Dynamic_Attribute_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Email_Activity_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Event_Attendee_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Group.txt create mode 100644 s3/data/crm/settings/CRM_Group_ex.sql create mode 100644 s3/data/crm/settings/CRM_Key_Message_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Hospital_Medical_Regimen__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Inquiry_Assignment__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_MR_Weekly_Report__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Medical_Event_Evaluation__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Medical_Regimen__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Patient__c.txt create mode 100644 s3/data/crm/settings/CRM_Medical_Event_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Medical_Inquiry_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Medical_Insight_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Multichannel_Activity_Line_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Multichannel_Activity_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Multichannel_Consent_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_My_Setup_Products_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_ObjectTerritory2Association.txt create mode 100644 s3/data/crm/settings/CRM_ObjectTerritory2Association_ex.sql create mode 100644 s3/data/crm/settings/CRM_Product_Group_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Product_Metrics_vod__c_ex.sql create mode 100644 s3/data/crm/settings/CRM_Product_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Profile.txt create mode 100644 s3/data/crm/settings/CRM_Profile_ex.sql create mode 100644 s3/data/crm/settings/CRM_Question_Response_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_RecordType.txt create mode 100644 s3/data/crm/settings/CRM_Remote_Meeting_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Sent_Email_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Sent_Fragment_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Survey_Question_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Survey_Target_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Survey_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Territory2.txt create mode 100644 s3/data/crm/settings/CRM_Territory2_ALL.txt create mode 100644 s3/data/crm/settings/CRM_Territory2_ex.sql create mode 100644 s3/data/crm/settings/CRM_Time_Off_Territory_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_User.txt create mode 100644 s3/data/crm/settings/CRM_UserRole.txt create mode 100644 s3/data/crm/settings/CRM_UserTerritory2Association.txt create mode 100644 s3/data/crm/settings/CRM_UserTerritory2Association_ALL.txt create mode 100644 s3/data/crm/settings/CRM_UserTerritory2Association_ex.sql create mode 100644 s3/data/crm/settings/configmap.config diff --git a/s3/data/crm/settings/CRM_Account.txt b/s3/data/crm/settings/CRM_Account.txt new file mode 100644 index 00000000..bee3992c --- /dev/null +++ b/s3/data/crm/settings/CRM_Account.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +248 +Id,IsDeleted,MasterRecordId,Name,LastName,FirstName,Salutation,RecordTypeId,Phone,Fax,Website,PhotoUrl,NumberOfEmployees,Ownership,OwnerId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,IsExcludedFromRealign,PersonContactId,IsPersonAccount,PersonMailingStreet,PersonMailingCity,PersonMailingState,PersonMailingPostalCode,PersonMailingCountry,PersonMailingLatitude,PersonMailingLongitude,PersonMailingGeocodeAccuracy,PersonMailingAddress,PersonOtherStreet,PersonOtherCity,PersonOtherState,PersonOtherPostalCode,PersonOtherCountry,PersonOtherLatitude,PersonOtherLongitude,PersonOtherGeocodeAccuracy,PersonOtherAddress,PersonMobilePhone,PersonHomePhone,PersonOtherPhone,PersonAssistantPhone,PersonEmail,PersonTitle,PersonDepartment,PersonAssistantName,PersonBirthdate,PersonHasOptedOutOfEmail,PersonHasOptedOutOfFax,PersonDoNotCall,PersonLastCURequestDate,PersonLastCUUpdateDate,PersonEmailBouncedReason,PersonEmailBouncedDate,PersonIndividualId,Jigsaw,JigsawCompanyId,AccountSource,SicDesc,External_ID_vod__c,Credentials_vod__c,Territory_vod__c,Exclude_from_Zip_to_Terr_Processing_vod__c,Group_Specialty_1_vod__c,Group_Specialty_2_vod__c,Specialty_1_vod__c,Specialty_2_vod__c,Formatted_Name_vod__c,Territory_Test_vod__c,Mobile_ID_vod__c,Gender_vod__c,ID_vod__c,Do_Not_Sync_Sales_Data_vod__c,ID2_vod__c,Preferred_Name_vod__c,Sample_Default_vod__c,Segmentations_vod__c,Restricted_Products_vod__c,Payer_Id_vod__c,Alternate_Name_vod__c,Do_Not_Call_vod__c,MSJ_Beds__c,Spend_Amount__c,PDRP_Opt_Out_vod__c,Spend_Status_Value_vod__c,PDRP_Opt_Out_Date_vod__c,Spend_Status_vod__c,Enable_Restricted_Products_vod__c,Call_Reminder_vod__c,Account_Group_vod__c,Primary_Parent_vod__c,Color_vod__c,Middle_vod__c,Suffix_vod__c,MSJ_Type__c,No_Orders_vod__c,MSJ_BU_ONC__c,MSJ_BU_FE__c,Account_Search_FirstLast_vod__c,Account_Search_LastFirst_vod__c,MSJ_Operation__c,Practice_at_Hospital_vod__c,Practice_Near_Hospital_vod__c,Do_Not_Create_Child_Account_vod__c,Total_MDs_DOs__c,AHA__c,Order_Type_vod__c,NPI_vod__c,ME__c,Speaker__c,Investigator_vod__c,Default_Order_Type_vod__c,Tax_Status__c,Model__c,Offerings__c,Departments__c,Account_Type__c,MSJ_ONC_Tier__c,Account_Search_Business_vod__c,Business_Professional_Person_vod__c,Hospital_Type_vod__c,Account_Class_vod__c,Furigana_vod__c,MSJ_JISART__c,Total_Revenue_000__c,Net_Income_Loss_000__c,PMPM_Income_Loss_000__c,Commercial_Premiums_PMPM__c,Medical_Loss_Ratio__c,Medical_Expenses_PMPM__c,Commercial_Patient_Days_1000__c,HMO_Market_Shr__c,HMO__c,HMO_POS__c,PPO__c,PPO_POS__c,Medicare__c,Medicaid__c,MSJ_HP_Name_E__c,MSJ_Department__c,MSJ_Date_Of_Birth__c,MSJ_FE_GF_Potential__c,MSJ_FE_SZ_Potential__c,MSJ_EB_CRC_Ladder__c,MSJ_EB_CRC_Segment__c,MSJ_EB_HN_Segment__c,Business_Description__c,Regional_Strategy__c,Contracts_Process__c,MSJ_GF_segment__c,MSJ_DCF_DR_Code__c,MSJ_SZ_Segment__c,MSJ_Remark__c,MSJ_Title__c,MSJ_Role__c,MSJ_Kana__c,MSJ_Specialism__c,MSJ_Graduated_from__c,MSJ_Year_Graduation__c,Target__c,KOL_vod__c,MSJ_EPPV_Code__c,MSJ_DCF_HP_Code__c,Total_Lives__c,Total_Physicians_Enrolled__c,MSJ_Delete__c,MSJ_KOL_LOL__c,MSJ_ONC_Status__c,Account_Identifier_vod__c,Approved_Email_Opt_Type_vod__c,Language_vod__c,MSJ_KRAS_Routine_Date__c,MSJ_KRAS_Routine__c,MSJ_DRP_Target__c,MSJ_Fertility_Evaluation_Score__c,MSJ_Fertility_Tracking_Last_Modify_Date__c,Total_Pharmacists__c,MSJ_Number_of_Gonadotropin__c,MSJ_Number_of_IUI_cycle__c,MSJ_Number_of_OI_monthly_cycle__c,MSJ_OI_Protocol_learning_level__c,MSJ_H_N_Tier__c,MSJ_XLK_Segment__c,MSJ_XLK_Tier__c,Career_Status_vod__c,Photo_vod__c,MSJ_EB_H_N_LA_Segment__c,MSJ_EB_H_N_RM_Segment__c,MSJ_FE_CE_Potential__c,MSJ_FE_1C_potential__c,MSJ_FE_OV_potential__c,MSJ_FE_Tech_potential__c,MSJ_CE_segment__c,MSJ_1C_segment__c,MSJ_OV_segment__c,MSJ_Tech_segment__c,MSJ_Target_Call_Num__c,MSJ_DR_Change_Log__c,MSJ_Global_scientific_exposure__c,MSJ_H_index__c,MSJ_Num_of_Article_3Y__c,MSJ_Num_of_Article__c,MSJ_Num_of_Article_as_1st_Author_3Y__c,MSJ_Num_of_article_growth_rate_3Y__c,MSJ_Num_of_cited_3Y__c,MSJ_Num_of_impact_factor_3Y__c,MSJ_impact_factor_as_1st_Author_3Y__c,EMDS_Has_Pipeline_Opportunity__c,EMDS_Pipeline_Count__c,MSJ_BVC_Segment__c,MSJ_BVC_Tier__c,MSJ_BVC_AcctOpen__c,MSJ_BVC_MCC_Patients__c,MSJ_ONC_HP_Segment__c,MSJ_AE_Department__c,MSJ_AE_Facility__c,MSJ_AE_Name__c,MSJ_AE_Title__c,MSJ_Email__c,MSJ_FE_GF2_Potential__c,MSJ_FE_Location_potential__c,MSJ_GF2_segment__c,MSJ_OPTIN_target__c,MSJ_Merck_Specialty1__c,MSJ_Merck_Specialty2__c,MSJ_Marketing_Cloud_Integration__c,MSJ_Marketing_Cloud1__c,MSJ_Marketing_Cloud2__c,MSJ_Marketing_Cloud3__c,MSJ_Marketing_Cloud4__c,MSJ_Medical_Department__c,MSJ_Marketing_Cloud0__c,Mobile_ID_vod__pc,H1Insights__H1_NPI_Value_for_Testing__pc,H1Insights__H1_Person_ID__pc,H1Insights__H1_Request_Status__pc,H1Insights__H1_URL__pc,H1Insights__NPI_Number__pc,H1Insights__NPI_Number_for_H1_Insights__pc,MSJ_Marketing_Cloud_Integration__pc +id,is_deleted,master_record_id,name,last_name,first_name,salutation,record_type_id,phone,fax,website,photo_url,number_of_employees,ownership,owner_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,is_excluded_from_realign,person_contact_id,is_person_account,person_mailing_street,person_mailing_city,person_mailing_state,person_mailing_postal_code,person_mailing_country,person_mailing_latitude,person_mailing_longitude,person_mailing_geocode_accuracy,person_mailing_address,person_other_street,person_other_city,person_other_state,person_other_postal_code,person_other_country,person_other_latitude,person_other_longitude,person_other_geocode_accuracy,person_other_address,person_mobile_phone,person_home_phone,person_other_phone,person_assistant_phone,person_email,person_title,person_department,person_assistant_name,person_birthdate,person_has_opted_out_of_email,person_has_opted_out_of_fax,person_do_not_call,person_last_curequest_date,person_last_cuupdate_date,person_email_bounced_reason,person_email_bounced_date,person_individual_id,jigsaw,jigsaw_company_id,account_source,sic_desc,external_id_vod__c,credentials_vod__c,territory_vod__c,exclude_from_zip_to_terr_processing_vod__c,group_specialty_1_vod__c,group_specialty_2_vod__c,specialty_1_vod__c,specialty_2_vod__c,formatted_name_vod__c,territory_test_vod__c,mobile_id_vod__c,gender_vod__c,id_vod__c,do_not_sync_sales_data_vod__c,id2_vod__c,preferred_name_vod__c,sample_default_vod__c,segmentations_vod__c,restricted_products_vod__c,payer_id_vod__c,alternate_name_vod__c,do_not_call_vod__c,msj_beds__c,spend_amount__c,pdrp_opt_out_vod__c,spend_status_value_vod__c,pdrp_opt_out_date_vod__c,spend_status_vod__c,enable_restricted_products_vod__c,call_reminder_vod__c,account_group_vod__c,primary_parent_vod__c,color_vod__c,middle_vod__c,suffix_vod__c,msj_type__c,no_orders_vod__c,msj_bu_onc__c,msj_bu_fe__c,account_search_first_last_vod__c,account_search_last_first_vod__c,msj_operation__c,practice_at_hospital_vod__c,practice_near_hospital_vod__c,do_not_create_child_account_vod__c,total_mds_dos__c,aha__c,order_type_vod__c,npi_vod__c,me__c,speaker__c,investigator_vod__c,default_order_type_vod__c,tax_status__c,model__c,offerings__c,departments__c,account_type__c,msj_onc_tier__c,account_search_business_vod__c,business_professional_person_vod__c,hospital_type_vod__c,account_class_vod__c,furigana_vod__c,msj_jisart__c,total_revenue_000__c,net_income_loss_000__c,pmpm_income_loss_000__c,commercial_premiums_pmpm__c,medical_loss_ratio__c,medical_expenses_pmpm__c,commercial_patient_days_1000__c,hmo_market_shr__c,hmo__c,hmo_pos__c,ppo__c,ppo_pos__c,medicare__c,medicaid__c,msj_hp_name_e__c,msj_department__c,msj_date_of_birth__c,msj_fe_gf_potential__c,msj_fe_sz_potential__c,msj_eb_crc_ladder__c,msj_eb_crc_segment__c,msj_eb_hn_segment__c,business_description__c,regional_strategy__c,contracts_process__c,msj_gf_segment__c,msj_dcf_dr_code__c,msj_sz_segment__c,msj_remark__c,msj_title__c,msj_role__c,msj_kana__c,msj_specialism__c,msj_graduated_from__c,msj_year_graduation__c,target__c,kol_vod__c,msj_eppv_code__c,msj_dcf_hp_code__c,total_lives__c,total_physicians_enrolled__c,msj_delete__c,msj_kol_lol__c,msj_onc_status__c,account_identifier_vod__c,approved_email_opt_type_vod__c,language_vod__c,msj_kras_routine_date__c,msj_kras_routine__c,msj_drp_target__c,msj_fertility_evaluation_score__c,msj_fertility_tracking_last_modify_date__c,total_pharmacists__c,msj_number_of_gonadotropin__c,msj_number_of_iui_cycle__c,msj_number_of_oi_monthly_cycle__c,msj_oi_protocol_learning_level__c,msj_h_n_tier__c,msj_xlk_segment__c,msj_xlk_tier__c,career_status_vod__c,photo_vod__c,msj_eb_h_n_la_segment__c,msj_eb_h_n_rm_segment__c,msj_fe_ce_potential__c,msj_fe_1_c_potential__c,msj_fe_ov_potential__c,msj_fe_tech_potential__c,msj_ce_segment__c,msj_1_c_segment__c,msj_ov_segment__c,msj_tech_segment__c,msj_target_call_num__c,msj_dr_change_log__c,msj_global_scientific_exposure__c,msj_h_index__c,msj_num_of_article_3_y__c,msj_num_of_article__c,msj_num_of_article_as_1st_author_3_y__c,msj_num_of_article_growth_rate_3_y__c,msj_num_of_cited_3_y__c,msj_num_of_impact_factor_3_y__c,msj_impact_factor_as_1st_author_3_y__c,emds_has_pipeline_opportunity__c,emds_pipeline_count__c,msj_bvc_segment__c,msj_bvc_tier__c,msj_bvc_acct_open__c,msj_bvc_mcc_patients__c,msj_onc_hp_segment__c,msj_ae_department__c,msj_ae_facility__c,msj_ae_name__c,msj_ae_title__c,msj_email__c,msj_fe_gf2_potential__c,msj_fe_location_potential__c,msj_gf2_segment__c,msj_optin_target__c,msj_merck_specialty1__c,msj_merck_specialty2__c,msj_marketing_cloud_integration__c,msj_marketing_cloud1__c,msj_marketing_cloud2__c,msj_marketing_cloud3__c,msj_marketing_cloud4__c,msj_medical_department__c,msj_marketing_cloud0__c,mobile_id_vod__pc,h1_insights__h1_npi_value_for_testing__pc,h1_insights__h1_person_id__pc,h1_insights__h1_request_status__pc,h1_insights__h1_url__pc,h1_insights__npi_number__pc,h1_insights__npi_number_for_h1_insights__pc,msj_marketing_cloud_integration__pc +src02.crm_account +org02.crm_account +CRM_Account_ex.sql + diff --git a/s3/data/crm/settings/CRM_AccountShare.txt b/s3/data/crm/settings/CRM_AccountShare.txt new file mode 100644 index 00000000..8176af1e --- /dev/null +++ b/s3/data/crm/settings/CRM_AccountShare.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +11 +Id,AccountId,UserOrGroupId,AccountAccessLevel,OpportunityAccessLevel,CaseAccessLevel,ContactAccessLevel,RowCause,LastModifiedDate,LastModifiedById,IsDeleted +id,account_id,user_or_group_id,account_access_level,opportunity_access_level,case_access_level,contact_access_level,row_cause,last_modified_date,last_modified_by_id,is_deleted +src02.crm_account_share +org02.crm_account_share +CRM_AccountShare_ex.sql + diff --git a/s3/data/crm/settings/CRM_AccountShare_ex.sql b/s3/data/crm/settings/CRM_AccountShare_ex.sql new file mode 100644 index 00000000..d18e68db --- /dev/null +++ b/s3/data/crm/settings/CRM_AccountShare_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_account_share', 'last_modified_date'); \ No newline at end of file diff --git a/s3/data/crm/settings/CRM_Account_Territory_Loader_vod__c.txt b/s3/data/crm/settings/CRM_Account_Territory_Loader_vod__c.txt new file mode 100644 index 00000000..676e8b39 --- /dev/null +++ b/s3/data/crm/settings/CRM_Account_Territory_Loader_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +19 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,External_ID_vod__c,Territory_vod__c,Mobile_ID_vod__c,Territory_To_Add_vod__c,Territory_to_Drop_vod__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,external_id_vod__c,territory_vod__c,mobile_id_vod__c,territory_to_add_vod__c,territory_to_drop_vod__c +src02.crm_account_territory_loader_vod__c +org02.crm_account_territory_loader_vod__c + + diff --git a/s3/data/crm/settings/CRM_Account_ex.sql b/s3/data/crm/settings/CRM_Account_ex.sql new file mode 100644 index 00000000..792d7a28 --- /dev/null +++ b/s3/data/crm/settings/CRM_Account_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_account', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Approved_Document_vod__c.txt b/s3/data/crm/settings/CRM_Approved_Document_vod__c.txt new file mode 100644 index 00000000..23683a8c --- /dev/null +++ b/s3/data/crm/settings/CRM_Approved_Document_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +53 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Detail_Group_vod__c,Document_Description_vod__c,Document_Host_URL_vod__c,Document_ID_vod__c,Document_Last_Mod_DateTime_vod__c,Email_Allows_Documents_vod__c,Email_Domain_vod__c,Email_Fragment_HTML_vod__c,Email_From_Address_vod__c,Email_From_Name_vod__c,Email_HTML_1_vod__c,Email_HTML_2_vod__c,Email_ReplyTo_Address_vod__c,Email_ReplyTo_Name_vod__c,Email_Subject_vod__c,Email_Template_Fragment_Document_ID_vod__c,Email_Template_Fragment_HTML_vod__c,ISI_Document_ID_vod__c,Language_vod__c,Other_Document_ID_List_vod__c,PI_Document_ID_vod__c,Piece_Document_ID_vod__c,Product_vod__c,Status_vod__c,Territory_vod__c,Vault_Instance_ID_vod__c,Allow_Any_Product_Fragment_vod__c,Allowed_Document_IDs_vod__c,Engage_Document_Id_vod__c,Vault_Document_ID_vod__c,Key_Message_vod__c,Events_Management_Subtype_vod__c,Survey_vod__c,Content_Type_vod__c,Bcc_vod__c,Audience_vod__c,WeChat_Template_ID_vod__c,Check_Consent_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,detail_group_vod__c,document_description_vod__c,document_host_url_vod__c,document_id_vod__c,document_last_mod_date_time_vod__c,email_allows_documents_vod__c,email_domain_vod__c,email_fragment_html_vod__c,email_from_address_vod__c,email_from_name_vod__c,email_html_1_vod__c,email_html_2_vod__c,email_reply_to_address_vod__c,email_reply_to_name_vod__c,email_subject_vod__c,email_template_fragment_document_id_vod__c,email_template_fragment_html_vod__c,isi_document_id_vod__c,language_vod__c,other_document_id_list_vod__c,pi_document_id_vod__c,piece_document_id_vod__c,product_vod__c,status_vod__c,territory_vod__c,vault_instance_id_vod__c,allow_any_product_fragment_vod__c,allowed_document_ids_vod__c,engage_document_id_vod__c,vault_document_id_vod__c,key_message_vod__c,events_management_subtype_vod__c,survey_vod__c,content_type_vod__c,bcc_vod__c,audience_vod__c,we_chat_template_id_vod__c,check_consent_vod__c +src02.crm_approved_document_vod__c +org02.crm_approved_document_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call2_Detail_vod__c.txt b/s3/data/crm/settings/CRM_Call2_Detail_vod__c.txt new file mode 100644 index 00000000..67a53029 --- /dev/null +++ b/s3/data/crm/settings/CRM_Call2_Detail_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +17 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Is_Parent_Call_vod__c,Call2_vod__c,Product_vod__c,Detail_Priority_vod__c,Mobile_ID_vod__c,Override_Lock_vod__c,Type_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,is_parent_call_vod__c,call2_vod__c,product_vod__c,detail_priority_vod__c,mobile_id_vod__c,override_lock_vod__c,type_vod__c +src02.crm_call2_detail_vod__c +org02.crm_call2_detail_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call2_Discussion_vod__c.txt b/s3/data/crm/settings/CRM_Call2_Discussion_vod__c.txt new file mode 100644 index 00000000..c86c840c --- /dev/null +++ b/s3/data/crm/settings/CRM_Call2_Discussion_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +44 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Account_vod__c,Call2_vod__c,Activity__c,Comments__c,Contact_vod__c,Call_Date_vod__c,Product_Strategy_vod__c,Product_Tactic_vod__c,Restricted_Comments__c,Product_vod__c,Presentation__c,Discussion_Topics__c,Slides__c,User_vod__c,Indication__c,Mobile_ID_vod__c,Medical_Event_vod__c,Is_Parent_Call_vod__c,Override_Lock_vod__c,zvod_Product_Map_vod__c,Attendee_Type_vod__c,Entity_Reference_Id_vod__c,Account_Tactic_vod__c,MSJ_Material_Type__c,MSJ_Discussion_Contents__c,MSJ_IST_Minutes__c,MSJ_Off_Label_Minutes__c,MSJ_Discussion_Objectives__c,MSJ_Insight__c,EMDS_Materials__c,EMDS_Topic__c,MSJ_Visit_Purpose__c,MSJ_Insight_Count__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,account_vod__c,call2_vod__c,activity__c,comments__c,contact_vod__c,call_date_vod__c,product_strategy_vod__c,product_tactic_vod__c,restricted_comments__c,product_vod__c,presentation__c,discussion_topics__c,slides__c,user_vod__c,indication__c,mobile_id_vod__c,medical_event_vod__c,is_parent_call_vod__c,override_lock_vod__c,zvod_product_map_vod__c,attendee_type_vod__c,entity_reference_id_vod__c,account_tactic_vod__c,msj_material_type__c,msj_discussion_contents__c,msj_ist_minutes__c,msj_off_label_minutes__c,msj_discussion_objectives__c,msj_insight__c,emds_materials__c,emds_topic__c,msj_visit_purpose__c,msj_insight_count__c +src02.crm_call2_discussion_vod__c +org02.crm_call2_discussion_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call2_Key_Message_vod__c.txt b/s3/data/crm/settings/CRM_Call2_Key_Message_vod__c.txt new file mode 100644 index 00000000..40267bd0 --- /dev/null +++ b/s3/data/crm/settings/CRM_Call2_Key_Message_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +35 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Account_vod__c,Call2_vod__c,Reaction_vod__c,Product_vod__c,Key_Message_vod__c,Mobile_ID_vod__c,Contact_vod__c,Call_Date_vod__c,User_vod__c,Category_vod__c,Vehicle_vod__c,Is_Parent_Call_vod__c,Override_Lock_vod__c,CLM_ID_vod__c,Slide_Version_vod__c,Duration_vod__c,Presentation_ID_vod__c,Start_Time_vod__c,Attendee_Type_vod__c,Entity_Reference_Id_vod__c,Segment_vod__c,Display_Order_vod__c,Clm_Presentation_Name_vod__c,Clm_Presentation_Version_vod__c,Clm_Presentation_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,account_vod__c,call2_vod__c,reaction_vod__c,product_vod__c,key_message_vod__c,mobile_id_vod__c,contact_vod__c,call_date_vod__c,user_vod__c,category_vod__c,vehicle_vod__c,is_parent_call_vod__c,override_lock_vod__c,clm_id_vod__c,slide_version_vod__c,duration_vod__c,presentation_id_vod__c,start_time_vod__c,attendee_type_vod__c,entity_reference_id_vod__c,segment_vod__c,display_order_vod__c,clm_presentation_name_vod__c,clm_presentation_version_vod__c,clm_presentation_vod__c +src02.crm_call2_key_message_vod__c +org02.crm_call2_key_message_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call2_vod__c.txt b/s3/data/crm/settings/CRM_Call2_vod__c.txt new file mode 100644 index 00000000..6b2c330e --- /dev/null +++ b/s3/data/crm/settings/CRM_Call2_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +205 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Call_Comments_vod__c,Sample_Card_vod__c,Add_Detail_vod__c,Property_vod__c,Account_vod__c,zvod_Product_Discussion_vod__c,Status_vod__c,Parent_Address_vod__c,Account_Plan_vod__c,zvod_SaveNew_vod__c,Next_Call_Notes_vod__c,Pre_Call_Notes_vod__c,Mobile_ID_vod__c,zvod_Account_Credentials_vod_c_vod__c,zvod_Account_Preferred_Name_vod_c_vod__c,zvod_Account_Sample_Status_vod_c_vod__c,zvod_Attendees_vod__c,zvod_Key_Messages_vod__c,zvod_Detailing_vod__c,zvod_Expenses_vod__c,zvod_Followup_vod__c,zvod_Samples_vod__c,zvod_Save_vod__c,zvod_Submit_vod__c,zvod_Delete_vod__c,Activity_Type__c,Significant_Event__c,Location_vod__c,Subject_vod__c,Unlock_vod__c,Call_Datetime_vod__c,Disbursed_To_vod__c,Disclaimer_vod__c,Request_Receipt_vod__c,Signature_Date_vod__c,Signature_vod__c,Territory_vod__c,Submitted_By_Mobile_vod__c,Call_Type_vod__c,Add_Key_Message_vod__c,Address_vod__c,Attendees_vod__c,Attendee_Type_vod__c,Call_Date_vod__c,Detailed_Products_vod__c,No_Disbursement_vod__c,Parent_Call_vod__c,User_vod__c,Contact_vod__c,zvod_Entity_vod__c,Medical_Event_vod__c,Mobile_Created_Datetime_vod__c,Mobile_Last_Modified_Datetime_vod__c,License_vod__c,Is_Parent_Call_vod__c,Entity_Display_Name_vod__c,Override_Lock_vod__c,Last_Device_vod__c,Ship_Address_Line_1_vod__c,Ship_Address_Line_2_vod__c,Ship_City_vod__c,Ship_Country_vod__c,Ship_License_Expiration_Date_vod__c,Ship_License_Status_vod__c,Ship_License_vod__c,Ship_State_vod__c,Ship_To_Address_vod__c,Ship_Zip_vod__c,Ship_To_Address_Text_vod__c,CLM_vod__c,zvod_CLMDetails_vod__c,Is_Sampled_Call_vod__c,zvod_Surveys_vod__c,Presentations_vod__c,Entity_Reference_Id_vod__c,Error_Reference_Call_vod__c,Duration_vod__c,Color_vod__c,Allowed_Products_vod__c,zvod_Attachments_vod__c,Sample_Card_Reason_vod__c,ASSMCA_vod__c,Address_Line_1_vod__c,Address_Line_2_vod__c,City_vod__c,DEA_Address_Line_1_vod__c,DEA_Address_Line_2_vod__c,DEA_Address_vod__c,DEA_City_vod__c,DEA_Expiration_Date_vod__c,DEA_State_vod__c,DEA_Zip_4_vod__c,DEA_Zip_vod__c,DEA_vod__c,Ship_Zip_4_vod__c,State_vod__c,Zip_4_vod__c,Zip_vod__c,Sample_Send_Card_vod__c,zvod_Address_vod_c_DEA_Status_vod_c_vod__c,Signature_Page_Image_vod__c,Credentials_vod__c,Salutation_vod__c,zvod_Account_Call_Reminder_vod_c_vod__c,MSJ_Meeting_Duration__c,MSJ_Double_Visit_AM__c,zvod_Business_Account_vod__c,Product_Priority_1_vod__c,Product_Priority_2_vod__c,Product_Priority_3_vod__c,Product_Priority_4_vod__c,Product_Priority_5_vod__c,zvod_More_Actions_vod__c,zvod_Call_Conflict_Status_vod__c,Signature_Timestamp_vod__c,Expense_Amount_vod__c,Total_Expense_Attendees_Count_vod__c,Attendee_list_vod__c,Expense_Post_Status_vod__c,Attendee_Post_Status_vod__c,Expense_System_External_ID_vod__c,Incurred_Expense_vod__c,Assigner_vod__c,Assignment_Datetime_vod__c,zvod_Call_Objective_vod__c,Signature_Location_Longitude_vod__c,Signature_Location_Latitude_vod__c,Location_Services_Status_vod__c,MSJ_Double_Visit_Other__c,MSJ_Comment__c,MSJ_For_Reporting__c,MSJ_Number_of_Attendees__c,MSJ_Main_Dept__c,Planned_Type_vjh__c,Cobrowse_URL_Participant_vod__c,MSJ_Activity_Method_Text__c,MSJ_Activity_Method__c,MSJ_Classification__c,MSJ_Double_Visit_MSL__c,MSJ_MSL_Comment_for_MR__c,MSJ_APD__c,Medical_Inquiry_vod__c,MSJ_Call_Type_MSJ__c,MSJ_Prescription_Request__c,MSJ_Patient_Follow__c,Child_Account_Id_vod__c,Child_Account_vod__c,Location_Id_vod__c,Location_Name_vod__c,MSJ_Comments_about_technology__c,Remote_Meeting_vod__c,Veeva_Remote_Meeting_Id_vod__c,MSJ_Activity_Type_Report__c,MSJ_Activity_Type__c,MSJ_Activity__c,MSJ_Comments__c,MSJ_Therapy__c,MSJ_Time_Hrs__c,EMDS_CO_Reference__c,EMDS_Call_Sub_Type__c,EMDS_Call_Type__c,EMDS_Call_Unsuccessful__c,EMDS_Congress_Type__c,EMDS_Date_of_Service__c,EMDS_Fertility_DisInterest__c,EMDS_Fertility_Interest__c,EMDS_Installed_Equipment__c,EMDS_Pipeline_Stage_Value__c,EMDS_Pipeline_Stage__c,EMDS_Pipeline__c,EMDS_Reason_for_Call__c,EMDS_Training_Completed__c,MSJ_BrainStorming__c,MSJ_SIPAGL_1A__c,MSJ_SIPAGL_1B__c,MSJ_SIPAGL_2__c,MSJ_SIPAGL_3__c,MSJ_SIPAGL_4A__c,MSJ_SIPAGL_5A__c,MSJ_SIPAGL_comment__c,MSJ_SIPAGL_4B__c,MSJ_SIPAGL_5B__c,Location_Text_vod__c,Call_Channel_vod__c,MSJ_Scientific_Interaction__c,MSJ_Activity_Email_Reply__c,MSJ_Interaction_Duration__c,MSJ_SIPAGL_1A_date__c,MSJ_CoPromotion__c,Call_Channel_Formula_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,call_comments_vod__c,sample_card_vod__c,add_detail_vod__c,property_vod__c,account_vod__c,zvod_product_discussion_vod__c,status_vod__c,parent_address_vod__c,account_plan_vod__c,zvod_save_new_vod__c,next_call_notes_vod__c,pre_call_notes_vod__c,mobile_id_vod__c,zvod_account_credentials_vod_c_vod__c,zvod_account_preferred_name_vod_c_vod__c,zvod_account_sample_status_vod_c_vod__c,zvod_attendees_vod__c,zvod_key_messages_vod__c,zvod_detailing_vod__c,zvod_expenses_vod__c,zvod_followup_vod__c,zvod_samples_vod__c,zvod_save_vod__c,zvod_submit_vod__c,zvod_delete_vod__c,activity_type__c,significant_event__c,location_vod__c,subject_vod__c,unlock_vod__c,call_datetime_vod__c,disbursed_to_vod__c,disclaimer_vod__c,request_receipt_vod__c,signature_date_vod__c,signature_vod__c,territory_vod__c,submitted_by_mobile_vod__c,call_type_vod__c,add_key_message_vod__c,address_vod__c,attendees_vod__c,attendee_type_vod__c,call_date_vod__c,detailed_products_vod__c,no_disbursement_vod__c,parent_call_vod__c,user_vod__c,contact_vod__c,zvod_entity_vod__c,medical_event_vod__c,mobile_created_datetime_vod__c,mobile_last_modified_datetime_vod__c,license_vod__c,is_parent_call_vod__c,entity_display_name_vod__c,override_lock_vod__c,last_device_vod__c,ship_address_line_1_vod__c,ship_address_line_2_vod__c,ship_city_vod__c,ship_country_vod__c,ship_license_expiration_date_vod__c,ship_license_status_vod__c,ship_license_vod__c,ship_state_vod__c,ship_to_address_vod__c,ship_zip_vod__c,ship_to_address_text_vod__c,clm_vod__c,zvod_clmdetails_vod__c,is_sampled_call_vod__c,zvod_surveys_vod__c,presentations_vod__c,entity_reference_id_vod__c,error_reference_call_vod__c,duration_vod__c,color_vod__c,allowed_products_vod__c,zvod_attachments_vod__c,sample_card_reason_vod__c,assmca_vod__c,address_line_1_vod__c,address_line_2_vod__c,city_vod__c,dea_address_line_1_vod__c,dea_address_line_2_vod__c,dea_address_vod__c,dea_city_vod__c,dea_expiration_date_vod__c,dea_state_vod__c,dea_zip_4_vod__c,dea_zip_vod__c,dea_vod__c,ship_zip_4_vod__c,state_vod__c,zip_4_vod__c,zip_vod__c,sample_send_card_vod__c,zvod_address_vod_c_dea_status_vod_c_vod__c,signature_page_image_vod__c,credentials_vod__c,salutation_vod__c,zvod_account_call_reminder_vod_c_vod__c,msj_meeting_duration__c,msj_double_visit_am__c,zvod_business_account_vod__c,product_priority_1_vod__c,product_priority_2_vod__c,product_priority_3_vod__c,product_priority_4_vod__c,product_priority_5_vod__c,zvod_more_actions_vod__c,zvod_call_conflict_status_vod__c,signature_timestamp_vod__c,expense_amount_vod__c,total_expense_attendees_count_vod__c,attendee_list_vod__c,expense_post_status_vod__c,attendee_post_status_vod__c,expense_system_external_id_vod__c,incurred_expense_vod__c,assigner_vod__c,assignment_datetime_vod__c,zvod_call_objective_vod__c,signature_location_longitude_vod__c,signature_location_latitude_vod__c,location_services_status_vod__c,msj_double_visit_other__c,msj_comment__c,msj_for_reporting__c,msj_number_of_attendees__c,msj_main_dept__c,planned_type_vjh__c,cobrowse_url_participant_vod__c,msj_activity_method_text__c,msj_activity_method__c,msj_classification__c,msj_double_visit_msl__c,msj_msl_comment_for_mr__c,msj_apd__c,medical_inquiry_vod__c,msj_call_type_msj__c,msj_prescription_request__c,msj_patient_follow__c,child_account_id_vod__c,child_account_vod__c,location_id_vod__c,location_name_vod__c,msj_comments_about_technology__c,remote_meeting_vod__c,veeva_remote_meeting_id_vod__c,msj_activity_type_report__c,msj_activity_type__c,msj_activity__c,msj_comments__c,msj_therapy__c,msj_time_hrs__c,emds_co_reference__c,emds_call_sub_type__c,emds_call_type__c,emds_call_unsuccessful__c,emds_congress_type__c,emds_date_of_service__c,emds_fertility_dis_interest__c,emds_fertility_interest__c,emds_installed_equipment__c,emds_pipeline_stage_value__c,emds_pipeline_stage__c,emds_pipeline__c,emds_reason_for_call__c,emds_training_completed__c,msj_brain_storming__c,msj_sipagl_1_a__c,msj_sipagl_1_b__c,msj_sipagl_2__c,msj_sipagl_3__c,msj_sipagl_4_a__c,msj_sipagl_5_a__c,msj_sipagl_comment__c,msj_sipagl_4_b__c,msj_sipagl_5_b__c,location_text_vod__c,call_channel_vod__c,msj_scientific_interaction__c,msj_activity_email_reply__c,msj_interaction_duration__c,msj_sipagl_1_a_date__c,msj_co_promotion__c,call_channel_formula_vod__c +src02.crm_call2_vod__c +org02.crm_call2_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call_Clickstream_vod__c.txt b/s3/data/crm/settings/CRM_Call_Clickstream_vod__c.txt new file mode 100644 index 00000000..e2b56535 --- /dev/null +++ b/s3/data/crm/settings/CRM_Call_Clickstream_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +34 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Answer_vod__c,Call_vod__c,Key_Message_vod__c,Mobile_ID_vod__c,Popup_Opened_vod__c,Possible_Answers_vod__c,Presentation_ID_vod__c,Product_vod__c,Range_Value_vod__c,Rollover_Entered_vod__c,Selected_Items_vod__c,CLM_ID_vod__c,Question_vod__c,Survey_Type_vod__c,Text_Entered_vod__c,Toggle_Button_On_vod__c,Track_Element_Description_vod__c,Track_Element_Id_vod__c,Track_Element_Type_vod__c,Usage_Duration_vod__c,Usage_Start_Time_vod__c,AuxillaryId_vod__c,ParentId_vod__c,Revision_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,answer_vod__c,call_vod__c,key_message_vod__c,mobile_id_vod__c,popup_opened_vod__c,possible_answers_vod__c,presentation_id_vod__c,product_vod__c,range_value_vod__c,rollover_entered_vod__c,selected_items_vod__c,clm_id_vod__c,question_vod__c,survey_type_vod__c,text_entered_vod__c,toggle_button_on_vod__c,track_element_description_vod__c,track_element_id_vod__c,track_element_type_vod__c,usage_duration_vod__c,usage_start_time_vod__c,auxillary_id_vod__c,parent_id_vod__c,revision_vod__c +src02.crm_call_clickstream_vod__c +org02.crm_call_clickstream_vod__c + + diff --git a/s3/data/crm/settings/CRM_Child_Account_vod__c.txt b/s3/data/crm/settings/CRM_Child_Account_vod__c.txt new file mode 100644 index 00000000..876bef05 --- /dev/null +++ b/s3/data/crm/settings/CRM_Child_Account_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +57 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Parent_Account_vod__c,Child_Account_vod__c,External_ID_vod__c,Mobile_ID_vod__c,Primary_vod__c,Copy_Address_vod__c,Child_Name_vod__c,Parent_Name_vod__c,Parent_Child_Name_vod__c,Account_Code__c,Child_Department__c,Child_Role__c,Child_Title__c,Child_Remark__c,MSJ_1C_segment__c,MSJ_BU_FE__c,MSJ_BU_ONC__c,MSJ_BVC_Segment__c,MSJ_CE_segment__c,MSJ_Child_Account_Link__c,MSJ_DCF_DR_Code__c,MSJ_DCF_HP_Code__c,MSJ_DR_Change_Log__c,MSJ_Delete__c,MSJ_Department__c,MSJ_EB_CRC_Segment__c,MSJ_EB_HN_Segment__c,MSJ_EB_H_N_LA_Segment__c,MSJ_EB_H_N_RM_Segment__c,MSJ_External_ID__c,MSJ_Fax__c,MSJ_GF2_segment__c,MSJ_GF_segment__c,MSJ_KOL_LOL__c,MSJ_KOL__c,MSJ_ONC_HP_Segment__c,MSJ_OPTIN_target__c,MSJ_OV_segment__c,MSJ_Parent_Child_Name__c,MSJ_Phone__c,MSJ_Remark__c,MSJ_Target_Call_Num__c,MSJ_Tech_segment__c,MSJ_Title__c,MSJ_XLK_Segment__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,parent_account_vod__c,child_account_vod__c,external_id_vod__c,mobile_id_vod__c,primary_vod__c,copy_address_vod__c,child_name_vod__c,parent_name_vod__c,parent_child_name_vod__c,account_code__c,child_department__c,child_role__c,child_title__c,child_remark__c,msj_1_c_segment__c,msj_bu_fe__c,msj_bu_onc__c,msj_bvc_segment__c,msj_ce_segment__c,msj_child_account_link__c,msj_dcf_dr_code__c,msj_dcf_hp_code__c,msj_dr_change_log__c,msj_delete__c,msj_department__c,msj_eb_crc_segment__c,msj_eb_hn_segment__c,msj_eb_h_n_la_segment__c,msj_eb_h_n_rm_segment__c,msj_external_id__c,msj_fax__c,msj_gf2_segment__c,msj_gf_segment__c,msj_kol_lol__c,msj_kol__c,msj_onc_hp_segment__c,msj_optin_target__c,msj_ov_segment__c,msj_parent_child_name__c,msj_phone__c,msj_remark__c,msj_target_call_num__c,msj_tech_segment__c,msj_title__c,msj_xlk_segment__c +src02.crm_child_account_vod__c +org02.crm_child_account_vod__c +CRM_Child_Account_vod__c_ex.sql + diff --git a/s3/data/crm/settings/CRM_Child_Account_vod__c_ex.sql b/s3/data/crm/settings/CRM_Child_Account_vod__c_ex.sql new file mode 100644 index 00000000..cac33f47 --- /dev/null +++ b/s3/data/crm/settings/CRM_Child_Account_vod__c_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_child_account_vod__c', 'system_modstamp'); \ No newline at end of file diff --git a/s3/data/crm/settings/CRM_Clm_Presentation_Slide_vod__c.txt b/s3/data/crm/settings/CRM_Clm_Presentation_Slide_vod__c.txt new file mode 100644 index 00000000..422a6926 --- /dev/null +++ b/s3/data/crm/settings/CRM_Clm_Presentation_Slide_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +17 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Clm_Presentation_vod__c,Key_Message_vod__c,Display_Order_vod__c,Sub_Presentation_vod__c,Mobile_ID_vod__c,External_ID_vod__c,VExternal_Id_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,clm_presentation_vod__c,key_message_vod__c,display_order_vod__c,sub_presentation_vod__c,mobile_id_vod__c,external_id_vod__c,vexternal_id_vod__c +src02.crm_clm_presentation_slide_vod__c +org02.crm_clm_presentation_slide_vod__c + + diff --git a/s3/data/crm/settings/CRM_Clm_Presentation_vod__c.txt b/s3/data/crm/settings/CRM_Clm_Presentation_vod__c.txt new file mode 100644 index 00000000..364a308b --- /dev/null +++ b/s3/data/crm/settings/CRM_Clm_Presentation_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +46 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Mobile_ID_vod__c,Presentation_Id_vod__c,Product_vod__c,Default_Presentation_vod__c,Training_vod__c,ParentId_vod__c,Hidden_vod__c,Type_vod__c,Approved_vod__c,Copied_From_vod__c,Copy_Date_vod__c,Survey_vod__c,Original_Record_ID_vod__c,Directory_vod__c,End_Date_vod__c,Start_Date_vod__c,Status_vod__c,VExternal_Id_vod__c,Vault_DNS_vod__c,Vault_Doc_Id_vod__c,Vault_External_Id_vod__c,Vault_GUID_vod__c,Vault_Last_Modified_Date_Time_vod__c,Version_vod__c,Enable_Survey_Overlay_vod__c,Description_vod__c,Keywords_vod__c,Content_Channel_vod__c,original_material_approved_in_veritas__c,keywords__c,trade_team__c,ewizard_link__c,business_function__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,mobile_id_vod__c,presentation_id_vod__c,product_vod__c,default_presentation_vod__c,training_vod__c,parent_id_vod__c,hidden_vod__c,type_vod__c,approved_vod__c,copied_from_vod__c,copy_date_vod__c,survey_vod__c,original_record_id_vod__c,directory_vod__c,end_date_vod__c,start_date_vod__c,status_vod__c,vexternal_id_vod__c,vault_dns_vod__c,vault_doc_id_vod__c,vault_external_id_vod__c,vault_guid_vod__c,vault_last_modified_date_time_vod__c,version_vod__c,enable_survey_overlay_vod__c,description_vod__c,keywords_vod__c,content_channel_vod__c,original_material_approved_in_veritas__c,keywords__c,trade_team__c,ewizard_link__c,business_function__c +src02.crm_clm_presentation_vod__c +org02.crm_clm_presentation_vod__c + + diff --git a/s3/data/crm/settings/CRM_Coaching_Report_vod__c.txt b/s3/data/crm/settings/CRM_Coaching_Report_vod__c.txt new file mode 100644 index 00000000..fd64a473 --- /dev/null +++ b/s3/data/crm/settings/CRM_Coaching_Report_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +144 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Mobile_ID_vod__c,Manager_vod__c,Employee_vod__c,Review_Date__c,Review_Period__c,Status__c,Comments__c,Strategic_Planning__c,Customer_Focus__c,Knowledge_Expertise__c,Business_Account_Planning__c,Call_Productivity__c,Overall_Rating__c,MSJ_A01__c,MSJ_A02__c,MSJ_A03__c,MSJ_AM_Memo__c,MSJ_Aid_Total__c,MSJ_C0_GC__c,MSJ_C1_GC__c,MSJ_C2_GC__c,MSJ_Countermeasure__c,MSJ_Deadline__c,MSJ_Double_Visit_Time__c,MSJ_Hospital__c,MSJ_K01_FE__c,MSJ_K01_ONC__c,MSJ_K02_FE__c,MSJ_K02_ONC__c,MSJ_K03_FE__c,MSJ_K03_ONC__c,MSJ_K04_FE__c,MSJ_K04_ONC__c,MSJ_K05_FE__c,MSJ_K05_ONC__c,MSJ_K06_FE__c,MSJ_K06_ONC__c,MSJ_K0_GC__c,MSJ_K1_GC__c,MSJ_K2_GC__c,MSJ_Knowledge_Total__c,MSJ_L0_GC__c,MSJ_L1_GC__c,MSJ_L2_GC__c,MSJ_MR_GC__c,MSJ_MR_Problems__c,MSJ_N0_GC__c,MSJ_N1_GC__c,MSJ_N2_GC__c,MSJ_Num_of_DTL__c,MSJ_P01__c,MSJ_P02__c,MSJ_P03__c,MSJ_P04__c,MSJ_P05__c,MSJ_P0_GC__c,MSJ_P1_GC__c,MSJ_P2_GC__c,MSJ_PlanningTotal__c,MSJ_R0_GC__c,MSJ_R1_GC__c,MSJ_R2_GC__c,MSJ_S01__c,MSJ_S02__c,MSJ_S03__c,MSJ_S04__c,MSJ_S05__c,MSJ_S06__c,MSJ_S07__c,MSJ_S08__c,MSJ_S09__c,MSJ_S10__c,MSJ_S11__c,MSJ_S12__c,MSJ_Skill_Total__c,MSJ_After_Call_01__c,MSJ_After_Call_02__c,MSJ_After_Call_03__c,MSJ_After_Call_04__c,MSJ_Closing__c,MSJ_Comment_by_MR__c,MSJ_Confirmed_by_MR__c,MSJ_Createdby__c,MSJ_FT_AM_Name__c,MSJ_Interview_Preparation__c,MSJ_Interview_Reflection__c,MSJ_Notify_To_MR__c,MSJ_Opening__c,MSJ_Others_01_Result__c,MSJ_Others_01__c,MSJ_Others_02_Result__c,MSJ_Others_02__c,MSJ_Patient_Thinking__c,MSJ_Probing__c,MSJ_Supporting__c,MSJ_Patient_Thinking_for_FE__c,MSJ_After_Call_05__c,MSJ_After_Call_06__c,MSJ_After_Call_07__c,MSJ_After_Call_08__c,MSJ_Createdby_FE__c,MSJ_Createdby_ONC__c,MSJ_Development_Level__c,MSJ_Interview_Prep_01__c,MSJ_Interview_Prep_02__c,MSJ_Leadership_Style__c,MSJ_Overcome_01__c,MSJ_Overcome_02__c,MSJ_Overcome_03__c,MSJ_Overcome_04__c,MSJ_Review_01__c,MSJ_Review_02__c,MSJ_SK_01__c,MSJ_SK_02__c,MSJ_SK_03__c,MSJ_SK_04__c,MSJ_SK_05__c,MSJ_SK_06__c,MSJ_SK_07__c,MSJ_SK_08__c,MSJ_SK_09__c,MSJ_SK_10__c,MSJ_Specific_Action__c,MSJ_Training_Point__c,MSJ_Efforts_of_Year__c,MSJ_Efforts_of_Month__c,MSJ_Skill_Task__c,MSJ_Action_of_This_Month__c,MSJ_Achievement_of_This_Month__c,MSJ_Comment_from_AM__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,mobile_id_vod__c,manager_vod__c,employee_vod__c,review_date__c,review_period__c,status__c,comments__c,strategic_planning__c,customer_focus__c,knowledge_expertise__c,business_account_planning__c,call_productivity__c,overall_rating__c,msj_a01__c,msj_a02__c,msj_a03__c,msj_am_memo__c,msj_aid_total__c,msj_c0_gc__c,msj_c1_gc__c,msj_c2_gc__c,msj_countermeasure__c,msj_deadline__c,msj_double_visit_time__c,msj_hospital__c,msj_k01_fe__c,msj_k01_onc__c,msj_k02_fe__c,msj_k02_onc__c,msj_k03_fe__c,msj_k03_onc__c,msj_k04_fe__c,msj_k04_onc__c,msj_k05_fe__c,msj_k05_onc__c,msj_k06_fe__c,msj_k06_onc__c,msj_k0_gc__c,msj_k1_gc__c,msj_k2_gc__c,msj_knowledge_total__c,msj_l0_gc__c,msj_l1_gc__c,msj_l2_gc__c,msj_mr_gc__c,msj_mr_problems__c,msj_n0_gc__c,msj_n1_gc__c,msj_n2_gc__c,msj_num_of_dtl__c,msj_p01__c,msj_p02__c,msj_p03__c,msj_p04__c,msj_p05__c,msj_p0_gc__c,msj_p1_gc__c,msj_p2_gc__c,msj_planning_total__c,msj_r0_gc__c,msj_r1_gc__c,msj_r2_gc__c,msj_s01__c,msj_s02__c,msj_s03__c,msj_s04__c,msj_s05__c,msj_s06__c,msj_s07__c,msj_s08__c,msj_s09__c,msj_s10__c,msj_s11__c,msj_s12__c,msj_skill_total__c,msj_after_call_01__c,msj_after_call_02__c,msj_after_call_03__c,msj_after_call_04__c,msj_closing__c,msj_comment_by_mr__c,msj_confirmed_by_mr__c,msj_createdby__c,msj_ft_am_name__c,msj_interview_preparation__c,msj_interview_reflection__c,msj_notify_to_mr__c,msj_opening__c,msj_others_01_result__c,msj_others_01__c,msj_others_02_result__c,msj_others_02__c,msj_patient_thinking__c,msj_probing__c,msj_supporting__c,msj_patient_thinking_for_fe__c,msj_after_call_05__c,msj_after_call_06__c,msj_after_call_07__c,msj_after_call_08__c,msj_createdby_fe__c,msj_createdby_onc__c,msj_development_level__c,msj_interview_prep_01__c,msj_interview_prep_02__c,msj_leadership_style__c,msj_overcome_01__c,msj_overcome_02__c,msj_overcome_03__c,msj_overcome_04__c,msj_review_01__c,msj_review_02__c,msj_sk_01__c,msj_sk_02__c,msj_sk_03__c,msj_sk_04__c,msj_sk_05__c,msj_sk_06__c,msj_sk_07__c,msj_sk_08__c,msj_sk_09__c,msj_sk_10__c,msj_specific_action__c,msj_training_point__c,msj_efforts_of_year__c,msj_efforts_of_month__c,msj_skill_task__c,msj_action_of_this_month__c,msj_achievement_of_this_month__c,msj_comment_from_am__c +src02.crm_coaching_report_vod__c +org02.crm_coaching_report_vod__c + + diff --git a/s3/data/crm/settings/CRM_Consent_Header_vod__c.txt b/s3/data/crm/settings/CRM_Consent_Header_vod__c.txt new file mode 100644 index 00000000..729c3452 --- /dev/null +++ b/s3/data/crm/settings/CRM_Consent_Header_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +22 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Consent_Header_Help_Text_vod__c,Country_vod__c,Inactive_Datetime_vod__c,Language_vod__c,Status_vod__c,Signature_Required_On_Opt_Out_vod__c,Request_Receipt_vod__c,Subscription_Option_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,consent_header_help_text_vod__c,country_vod__c,inactive_datetime_vod__c,language_vod__c,status_vod__c,signature_required_on_opt_out_vod__c,request_receipt_vod__c,subscription_option_vod__c +src02.crm_consent_header_vod__c +org02.crm_consent_header_vod__c + + diff --git a/s3/data/crm/settings/CRM_Consent_Line_vod__c.txt b/s3/data/crm/settings/CRM_Consent_Line_vod__c.txt new file mode 100644 index 00000000..3cc95e31 --- /dev/null +++ b/s3/data/crm/settings/CRM_Consent_Line_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +25 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Consent_Type_vod__c,Detail_Group_Display_Name_vod__c,Detail_Group_vod__c,Display_Order_vod__c,End_Date_vod__c,Group_By_vod__c,Product_Display_Name_vod__c,Product_vod__c,Start_Date_vod__c,Sub_Channel_Description_vod__c,Sub_Channel_Display_Name_vod__c,Sub_Channel_Key_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,consent_type_vod__c,detail_group_display_name_vod__c,detail_group_vod__c,display_order_vod__c,end_date_vod__c,group_by_vod__c,product_display_name_vod__c,product_vod__c,start_date_vod__c,sub_channel_description_vod__c,sub_channel_display_name_vod__c,sub_channel_key_vod__c +src02.crm_consent_line_vod__c +org02.crm_consent_line_vod__c + + diff --git a/s3/data/crm/settings/CRM_Consent_Type_vod__c.txt b/s3/data/crm/settings/CRM_Consent_Type_vod__c.txt new file mode 100644 index 00000000..2a3451a0 --- /dev/null +++ b/s3/data/crm/settings/CRM_Consent_Type_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +26 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Consent_Header_vod__c,Channel_Label_vod__c,Channel_Source_vod__c,Consent_Expires_In_vod__c,Default_Consent_Type_vod__c,Disclaimer_Text_vod__c,Display_Order_vod__c,Product_Preference_vod__c,zvod_Consent_Default_Consent_Text_vod__c,zvod_Consent_Line_vod__c,zvod_Signature_Capture_vod__c,Double_Opt_In_vod__c,zvod_Consent_Activity_Tracking_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,consent_header_vod__c,channel_label_vod__c,channel_source_vod__c,consent_expires_in_vod__c,default_consent_type_vod__c,disclaimer_text_vod__c,display_order_vod__c,product_preference_vod__c,zvod_consent_default_consent_text_vod__c,zvod_consent_line_vod__c,zvod_signature_capture_vod__c,double_opt_in_vod__c,zvod_consent_activity_tracking_vod__c +src02.crm_consent_type_vod__c +org02.crm_consent_type_vod__c + + diff --git a/s3/data/crm/settings/CRM_Contact.txt b/s3/data/crm/settings/CRM_Contact.txt new file mode 100644 index 00000000..21a9c5dd --- /dev/null +++ b/s3/data/crm/settings/CRM_Contact.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +71 +Id,IsDeleted,MasterRecordId,AccountId,IsPersonAccount,LastName,FirstName,Salutation,Name,OtherStreet,OtherCity,OtherState,OtherPostalCode,OtherCountry,OtherLatitude,OtherLongitude,OtherGeocodeAccuracy,OtherAddress,MailingStreet,MailingCity,MailingState,MailingPostalCode,MailingCountry,MailingLatitude,MailingLongitude,MailingGeocodeAccuracy,MailingAddress,Phone,Fax,MobilePhone,HomePhone,OtherPhone,AssistantPhone,ReportsToId,Email,Title,Department,AssistantName,Birthdate,Description,OwnerId,HasOptedOutOfEmail,HasOptedOutOfFax,DoNotCall,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,LastCURequestDate,LastCUUpdateDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,EmailBouncedReason,EmailBouncedDate,IsEmailBounced,PhotoUrl,Jigsaw,JigsawContactId,IndividualId,Mobile_ID_vod__c,H1Insights__H1_NPI_Value_for_Testing__c,H1Insights__H1_Person_ID__c,H1Insights__H1_Request_Status__c,H1Insights__H1_URL__c,H1Insights__NPI_Number__c,H1Insights__NPI_Number_for_H1_Insights__c,MSJ_Marketing_Cloud_Integration__c +id,is_deleted,master_record_id,account_id,is_person_account,last_name,first_name,salutation,name,other_street,other_city,other_state,other_postal_code,other_country,other_latitude,other_longitude,other_geocode_accuracy,other_address,mailing_street,mailing_city,mailing_state,mailing_postal_code,mailing_country,mailing_latitude,mailing_longitude,mailing_geocode_accuracy,mailing_address,phone,fax,mobile_phone,home_phone,other_phone,assistant_phone,reports_to_id,email,title,department,assistant_name,birthdate,description,owner_id,has_opted_out_of_email,has_opted_out_of_fax,do_not_call,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,last_curequest_date,last_cuupdate_date,may_edit,is_locked,last_viewed_date,last_referenced_date,email_bounced_reason,email_bounced_date,is_email_bounced,photo_url,jigsaw,jigsaw_contact_id,individual_id,mobile_id_vod__c,h1_insights__h1_npi_value_for_testing__c,h1_insights__h1_person_id__c,h1_insights__h1_request_status__c,h1_insights__h1_url__c,h1_insights__npi_number__c,h1_insights__npi_number_for_h1_insights__c,msj_marketing_cloud_integration__c +src02.crm_contact +org02.crm_contact +CRM_Contact_ex.sql + diff --git a/s3/data/crm/settings/CRM_Contact_ex.sql b/s3/data/crm/settings/CRM_Contact_ex.sql new file mode 100644 index 00000000..4b916e23 --- /dev/null +++ b/s3/data/crm/settings/CRM_Contact_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_contact', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Dynamic_Attribute_Configuration_vod__c.txt b/s3/data/crm/settings/CRM_Dynamic_Attribute_Configuration_vod__c.txt new file mode 100644 index 00000000..d48828a7 --- /dev/null +++ b/s3/data/crm/settings/CRM_Dynamic_Attribute_Configuration_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +29 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Applies_To_vod__c,Attribute_Label_vod__c,Attribute_Name_vod__c,Available_Values_vod__c,Description_vod__c,Detail_Group_vod__c,Display_Order_vod__c,External_ID_vod__c,Help_Text_vod__c,Product_vod__c,Read_Only_vod__c,Section_Name_vod__c,Sharing_Group_vod__c,Status_vod__c,Track_Changes_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,applies_to_vod__c,attribute_label_vod__c,attribute_name_vod__c,available_values_vod__c,description_vod__c,detail_group_vod__c,display_order_vod__c,external_id_vod__c,help_text_vod__c,product_vod__c,read_only_vod__c,section_name_vod__c,sharing_group_vod__c,status_vod__c,track_changes_vod__c +src02.crm_dynamic_attribute_configuration_vod__c +org02.crm_dynamic_attribute_configuration_vod__c + + diff --git a/s3/data/crm/settings/CRM_Dynamic_Attribute_vod__c.txt b/s3/data/crm/settings/CRM_Dynamic_Attribute_vod__c.txt new file mode 100644 index 00000000..adea9267 --- /dev/null +++ b/s3/data/crm/settings/CRM_Dynamic_Attribute_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +26 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Account_vod__c,Active_vod__c,Dynamic_Attribute_Configuration_vod__c,Dynamic_Attribute_Description_vod__c,Dynamic_Attribute_Help_Text_vod__c,Dynamic_Attribute_Label_vod__c,Dynamic_Attribute_Name_vod__c,Dynamic_Attribute_Record_Type_vod__c,Dynamic_Attribute_Value_Checkbox_vod__c,Dynamic_Attribute_Value_Date_Time_vod__c,Dynamic_Attribute_Value_Date_vod__c,Dynamic_Attribute_Value_Number_vod__c,Dynamic_Attribute_Value_Text_Area_vod__c,Dynamic_Attribute_Value_Text_vod__c,Mobile_ID_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,account_vod__c,active_vod__c,dynamic_attribute_configuration_vod__c,dynamic_attribute_description_vod__c,dynamic_attribute_help_text_vod__c,dynamic_attribute_label_vod__c,dynamic_attribute_name_vod__c,dynamic_attribute_record_type_vod__c,dynamic_attribute_value_checkbox_vod__c,dynamic_attribute_value_date_time_vod__c,dynamic_attribute_value_date_vod__c,dynamic_attribute_value_number_vod__c,dynamic_attribute_value_text_area_vod__c,dynamic_attribute_value_text_vod__c,mobile_id_vod__c +src02.crm_dynamic_attribute_vod__c +org02.crm_dynamic_attribute_vod__c + + diff --git a/s3/data/crm/settings/CRM_Email_Activity_vod__c.txt b/s3/data/crm/settings/CRM_Email_Activity_vod__c.txt new file mode 100644 index 00000000..2c801e06 --- /dev/null +++ b/s3/data/crm/settings/CRM_Email_Activity_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +36 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,Sent_Email_vod__c,Activity_DateTime_vod__c,City_vod__c,Click_URL_vod__c,Client_Name_vod__c,Client_OS_vod__c,Client_Type_vod__c,Country_vod__c,Device_Type_vod__c,Event_Msg_vod__c,Event_type_vod__c,IP_Address_vod__c,Region_vod__c,User_Agent_vod__c,Vault_Doc_ID_vod__c,Vault_Doc_Name_vod__c,Vault_Document_Major_Version_vod__c,Vault_Document_Minor_Version_vod__c,Vault_Document_Number_vod__c,Vault_Document_Title_vod__c,Vault_Instance_ID_vod__c,Preference_Modification_vod__c,Approved_Document_vod__c,Link_Name_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,sent_email_vod__c,activity_date_time_vod__c,city_vod__c,click_url_vod__c,client_name_vod__c,client_os_vod__c,client_type_vod__c,country_vod__c,device_type_vod__c,event_msg_vod__c,event_type_vod__c,ip_address_vod__c,region_vod__c,user_agent_vod__c,vault_doc_id_vod__c,vault_doc_name_vod__c,vault_document_major_version_vod__c,vault_document_minor_version_vod__c,vault_document_number_vod__c,vault_document_title_vod__c,vault_instance_id_vod__c,preference_modification_vod__c,approved_document_vod__c,link_name_vod__c +src02.crm_email_activity_vod__c +org02.crm_email_activity_vod__c + + diff --git a/s3/data/crm/settings/CRM_Event_Attendee_vod__c.txt b/s3/data/crm/settings/CRM_Event_Attendee_vod__c.txt new file mode 100644 index 00000000..d5d6c0dc --- /dev/null +++ b/s3/data/crm/settings/CRM_Event_Attendee_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +31 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Attendee_vod__c,User_vod__c,Medical_Event_vod__c,Attendee_Type_vod__c,Status_vod__c,Contact_vod__c,Attendee_Name_vod__c,Account_vod__c,Start_Date_vod__c,Signature_vod__c,Signature_Datetime_vod__c,MSJ_Copy_Account_Type__c,MSJ_Evaluation__c,MSJ_Hospital__c,MSJ_Role__c,Mobile_ID_vod__c,MSJ_Evaluation_Comment__c,Position_vod__c,Talk_Title_vod__c,MSJ_Attendee_Reaction__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,attendee_vod__c,user_vod__c,medical_event_vod__c,attendee_type_vod__c,status_vod__c,contact_vod__c,attendee_name_vod__c,account_vod__c,start_date_vod__c,signature_vod__c,signature_datetime_vod__c,msj_copy_account_type__c,msj_evaluation__c,msj_hospital__c,msj_role__c,mobile_id_vod__c,msj_evaluation_comment__c,position_vod__c,talk_title_vod__c,msj_attendee_reaction__c +src02.crm_event_attendee_vod__c +org02.crm_event_attendee_vod__c + + diff --git a/s3/data/crm/settings/CRM_Group.txt b/s3/data/crm/settings/CRM_Group.txt new file mode 100644 index 00000000..94f4d0ca --- /dev/null +++ b/s3/data/crm/settings/CRM_Group.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +14 +Id,Name,DeveloperName,RelatedId,Type,Email,OwnerId,DoesSendEmailToMembers,DoesIncludeBosses,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp +id,name,developer_name,related_id,type,email,owner_id,does_send_email_to_members,does_include_bosses,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp +src02.crm_group +org02.crm_group +CRM_Group_ex.sql + diff --git a/s3/data/crm/settings/CRM_Group_ex.sql b/s3/data/crm/settings/CRM_Group_ex.sql new file mode 100644 index 00000000..5e50dab6 --- /dev/null +++ b/s3/data/crm/settings/CRM_Group_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_group', 'system_modstamp'); \ No newline at end of file diff --git a/s3/data/crm/settings/CRM_Key_Message_vod__c.txt b/s3/data/crm/settings/CRM_Key_Message_vod__c.txt new file mode 100644 index 00000000..1c1f1df0 --- /dev/null +++ b/s3/data/crm/settings/CRM_Key_Message_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +48 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Description_vod__c,Product_vod__c,Product_Strategy_vod__c,Display_Order_vod__c,Active_vod__c,Category_vod__c,Vehicle_vod__c,CLM_ID_vod__c,Custom_Reaction_vod__c,Slide_Version_vod__c,Language_vod__c,Media_File_CRC_vod__c,Media_File_Name_vod__c,Media_File_Size_vod__c,Segment_vod__c,Disable_Actions_vod__c,VExternal_Id_vod__c,CDN_Path_vod__c,Status_vod__c,Vault_DNS_vod__c,Vault_Doc_Id_vod__c,Vault_External_Id_vod__c,Vault_GUID_vod__c,Vault_Last_Modified_Date_Time_vod__c,Is_Shared_Resource_vod__c,iOS_Viewer_vod__c,iOS_Resolution_vod__c,approved_for_distribution_date__c,approved_for_use_date__c,ewizard_link__c,expiration_date__c,keywords__c,trade_team__c,business_function__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,description_vod__c,product_vod__c,product_strategy_vod__c,display_order_vod__c,active_vod__c,category_vod__c,vehicle_vod__c,clm_id_vod__c,custom_reaction_vod__c,slide_version_vod__c,language_vod__c,media_file_crc_vod__c,media_file_name_vod__c,media_file_size_vod__c,segment_vod__c,disable_actions_vod__c,vexternal_id_vod__c,cdn_path_vod__c,status_vod__c,vault_dns_vod__c,vault_doc_id_vod__c,vault_external_id_vod__c,vault_guid_vod__c,vault_last_modified_date_time_vod__c,is_shared_resource_vod__c,i_os_viewer_vod__c,i_os_resolution_vod__c,approved_for_distribution_date__c,approved_for_use_date__c,ewizard_link__c,expiration_date__c,keywords__c,trade_team__c,business_function__c +src02.crm_key_message_vod__c +org02.crm_key_message_vod__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Hospital_Medical_Regimen__c.txt b/s3/data/crm/settings/CRM_MSJ_Hospital_Medical_Regimen__c.txt new file mode 100644 index 00000000..c295fc5e --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Hospital_Medical_Regimen__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +18 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,MSJ_Account_Name__c,MSJ_Delete_Date__c,MSJ_Delete_Flag__c,MSJ_Indication__c,MSJ_Line__c,MSJ_Medical_Regimen__c,Mobile_ID_vod__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,msj_account_name__c,msj_delete_date__c,msj_delete_flag__c,msj_indication__c,msj_line__c,msj_medical_regimen__c,mobile_id_vod__c +src02.crm_msj_hospital_medical_regimen__c +org02.crm_msj_hospital_medical_regimen__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Inquiry_Assignment__c.txt b/s3/data/crm/settings/CRM_MSJ_Inquiry_Assignment__c.txt new file mode 100644 index 00000000..a50bf1f3 --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Inquiry_Assignment__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +47 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,MSJ_Medical_Inquiry__c,MSJ_Close__c,MSJ_Doctor_Name__c,MSJ_Hospital_Name__c,MSJ_Indication__c,MSJ_Inquiry_Text__c,MSJ_MEC_User__c,MSJ_MSL_Manager__c,MSJ_MSL_User__c,MSJ_Notice_to_MR__c,MSJ_Product_for_MEC__c,MSJ_Product_for_MR__c,MSJ_Reply_Date__c,MSJ_Reply__c,MSJ_AE_Infomation__c,MSJ_Cancel__c,MSJ_FAQ_number_c__c,MSJ_Return_Call__c,MSJ_Inquiry_Origin__c,First_Response__c,Inquiry_Created_Date__c,Inquiry_Type_1__c,Inquiry_Type_2__c,MSJ_First_User__c,MSJ_MEC_Comment__c,MSJ_Send_Email__c,MSJ_Temp_Aggregated_Info__c,MSJ_AE_Report__c,MSJ_Background__c,MSJ_Inquiry_Date__c,MSJ_MSL_Support__c,MSJ_Handover_Comment__c,MSJ_Handover_Email__c,MSJ_Material_Requirement__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,msj_medical_inquiry__c,msj_close__c,msj_doctor_name__c,msj_hospital_name__c,msj_indication__c,msj_inquiry_text__c,msj_mec_user__c,msj_msl_manager__c,msj_msl_user__c,msj_notice_to_mr__c,msj_product_for_mec__c,msj_product_for_mr__c,msj_reply_date__c,msj_reply__c,msj_ae_infomation__c,msj_cancel__c,msj_faq_number_c__c,msj_return_call__c,msj_inquiry_origin__c,first_response__c,inquiry_created_date__c,inquiry_type_1__c,inquiry_type_2__c,msj_first_user__c,msj_mec_comment__c,msj_send_email__c,msj_temp_aggregated_info__c,msj_ae_report__c,msj_background__c,msj_inquiry_date__c,msj_msl_support__c,msj_handover_comment__c,msj_handover_email__c,msj_material_requirement__c +src02.crm_msj_inquiry_assignment__c +org02.crm_msj_inquiry_assignment__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_MR_Weekly_Report__c.txt b/s3/data/crm/settings/CRM_MSJ_MR_Weekly_Report__c.txt new file mode 100644 index 00000000..89df0b85 --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_MR_Weekly_Report__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +35 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,MSJ_Account_Name__c,MSJ_Activity_Results_Summary__c,MSJ_MUID__c,MSJ_Next_Week_Action_What__c,MSJ_Next_Week_Action_When__c,MSJ_Next_Week_Action_Where__c,MSJ_Next_Week_Action_Who__c,MSJ_Report_Week__c,MSJ_Target_Patient_Count__c,Mobile_ID_vod__c,MSJ_Activity_Results_Summary_HN__c,MSJ_Next_Week_Action_Where_HN__c,MSJ_Next_Week_Action_Who_HN__c,MSJ_Next_Week_Action_What_HN__c,MSJ_Next_Week_Action_When_HN__c,MSJ_Target_Patient_Count_HN__c,MSJ_Activity_Results_Summary_MCC__c,MSJ_Next_Week_Action_Where_MCC__c,MSJ_Next_Week_Action_Who_MCC__c,MSJ_Next_Week_Action_What_MCC__c,MSJ_Next_Week_Action_When_MCC__c,MSJ_Target_Patient_Count_MCC__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,msj_account_name__c,msj_activity_results_summary__c,msj_muid__c,msj_next_week_action_what__c,msj_next_week_action_when__c,msj_next_week_action_where__c,msj_next_week_action_who__c,msj_report_week__c,msj_target_patient_count__c,mobile_id_vod__c,msj_activity_results_summary_hn__c,msj_next_week_action_where_hn__c,msj_next_week_action_who_hn__c,msj_next_week_action_what_hn__c,msj_next_week_action_when_hn__c,msj_target_patient_count_hn__c,msj_activity_results_summary_mcc__c,msj_next_week_action_where_mcc__c,msj_next_week_action_who_mcc__c,msj_next_week_action_what_mcc__c,msj_next_week_action_when_mcc__c,msj_target_patient_count_mcc__c +src02.crm_msj_mr_weekly_report__c +org02.crm_msj_mr_weekly_report__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Medical_Event_Evaluation__c.txt b/s3/data/crm/settings/CRM_MSJ_Medical_Event_Evaluation__c.txt new file mode 100644 index 00000000..5f1546f2 --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Medical_Event_Evaluation__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +14 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,MSJ_Medical_Event__c,MSJ_Evaluation_Comment__c,MSJ_Evaluation__c,Mobile_ID_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,msj_medical_event__c,msj_evaluation_comment__c,msj_evaluation__c,mobile_id_vod__c +src02.crm_msj_medical_event_evaluation__c +org02.crm_msj_medical_event_evaluation__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Medical_Regimen__c.txt b/s3/data/crm/settings/CRM_MSJ_Medical_Regimen__c.txt new file mode 100644 index 00000000..321b8a5e --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Medical_Regimen__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +17 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,MSJ_Delete_Date__c,MSJ_Delete_Flag__c,MSJ_Indication__c,MSJ_Remark__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,msj_delete_date__c,msj_delete_flag__c,msj_indication__c,msj_remark__c +src02.crm_msj_medical_regimen__c +org02.crm_msj_medical_regimen__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Patient__c.txt b/s3/data/crm/settings/CRM_MSJ_Patient__c.txt new file mode 100644 index 00000000..8b1bac96 --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Patient__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +37 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,MSJ_Account_Name__c,MSJ_CRC_Group__c,MSJ_Casus_or_Transfer_Point__c,MSJ_Entry_Date__c,MSJ_IST_Name__c,MSJ_Indication__c,MSJ_Line__c,MSJ_MR_Comments__c,MSJ_MUID__c,MSJ_Medical_Regimen__c,MSJ_Month__c,MSJ_Report_Comments__c,MSJ_Start_Date_Of_Administration__c,MSJ_Year__c,Mobile_ID_vod__c,MSJ_CRC_RAS_KRAS__c,MSJ_End_Date_Of_Administration__c,MSJ_End_Date_of_Stop_Administration__c,MSJ_HN_Hospitalized_Type__c,MSJ_Start_Date_of_Stop_Administration__c,MSJ_Patient_Status__c,MSJ_Patient_TA__c,MSJ_Child_Account_Name__c,MSJ_Child_Account__c,MSJ_Parent_Account_Name__c,MSJ_Parent_Child_Name__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,msj_account_name__c,msj_crc_group__c,msj_casus_or_transfer_point__c,msj_entry_date__c,msj_ist_name__c,msj_indication__c,msj_line__c,msj_mr_comments__c,msj_muid__c,msj_medical_regimen__c,msj_month__c,msj_report_comments__c,msj_start_date_of_administration__c,msj_year__c,mobile_id_vod__c,msj_crc_ras_kras__c,msj_end_date_of_administration__c,msj_end_date_of_stop_administration__c,msj_hn_hospitalized_type__c,msj_start_date_of_stop_administration__c,msj_patient_status__c,msj_patient_ta__c,msj_child_account_name__c,msj_child_account__c,msj_parent_account_name__c,msj_parent_child_name__c +src02.crm_msj_patient__c +org02.crm_msj_patient__c + + diff --git a/s3/data/crm/settings/CRM_Medical_Event_vod__c.txt b/s3/data/crm/settings/CRM_Medical_Event_vod__c.txt new file mode 100644 index 00000000..159a475b --- /dev/null +++ b/s3/data/crm/settings/CRM_Medical_Event_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +52 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Primary_Product__c,Description_vod__c,Start_Date_vod__c,Location__c,End_Date_vod__c,Secondary_Product__c,Website__c,Active_vod__c,Event_Type__c,MSJ_Area__c,MSJ_Business_Unit__c,MSJ_Comment__c,MSJ_Company__c,MSJ_Expense_App_No__c,MSJ_Form__c,MSJ_HQ_Area__c,MSJ_Location__c,MSJ_MR__c,MSJ_Number_of_Attendee__c,MSJ_Product__c,MSJ_Site__c,MSJ_Type__c,MSJ_Number_of_Attendee_Auto_Calc__c,MSJ_Number_of_Attendee_Invited__c,Account_vod__c,MSJ_MUID__c,Country_Name_vod__c,MSJ_CE_SIPAGL_Updater__c,MSJ_CE_SIPAGL_1A__c,MSJ_CE_SIPAGL_1B__c,MSJ_CE_SIPAGL_2__c,MSJ_CE_SIPAGL_3__c,MSJ_CE_SIPAGL_4__c,MSJ_CE_SIPAGL_5__c,MSJ_CE_SIPAGL_Comment__c,MSJ_CE_SIPAGL_1A_date__c,MSJ_CE_SIPAGL_6__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,primary_product__c,description_vod__c,start_date_vod__c,location__c,end_date_vod__c,secondary_product__c,website__c,active_vod__c,event_type__c,msj_area__c,msj_business_unit__c,msj_comment__c,msj_company__c,msj_expense_app_no__c,msj_form__c,msj_hq_area__c,msj_location__c,msj_mr__c,msj_number_of_attendee__c,msj_product__c,msj_site__c,msj_type__c,msj_number_of_attendee_auto_calc__c,msj_number_of_attendee_invited__c,account_vod__c,msj_muid__c,country_name_vod__c,msj_ce_sipagl_updater__c,msj_ce_sipagl_1_a__c,msj_ce_sipagl_1_b__c,msj_ce_sipagl_2__c,msj_ce_sipagl_3__c,msj_ce_sipagl_4__c,msj_ce_sipagl_5__c,msj_ce_sipagl_comment__c,msj_ce_sipagl_1_a_date__c,msj_ce_sipagl_6__c +src02.crm_medical_event_vod__c +org02.crm_medical_event_vod__c + + diff --git a/s3/data/crm/settings/CRM_Medical_Inquiry_vod__c.txt b/s3/data/crm/settings/CRM_Medical_Inquiry_vod__c.txt new file mode 100644 index 00000000..cafca6d9 --- /dev/null +++ b/s3/data/crm/settings/CRM_Medical_Inquiry_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +67 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Address_Line_1_vod__c,Address_Line_2_vod__c,City_vod__c,Delivery_Method_vod__c,Email_vod__c,Fax_Number_vod__c,Inquiry_Text__c,Lock_vod__c,Mobile_ID_vod__c,Phone_Number_vod__c,Product__c,Rush_Delivery__c,Signature_Date_vod__c,Signature_vod__c,State_vod__c,Status_vod__c,Zip_vod__c,zvod_Delivery_Method_vod__c,zvod_Disclaimer_vod__c,Submitted_By_Mobile_vod__c,Disclaimer_vod__c,Entity_Reference_Id_vod__c,Call2_vod__c,Country_vod__c,Override_Lock_vod__c,MSJ_Department__c,MSJ_Doctor_Name__c,MSJ_Hospital_Name__c,MSJ_Indication__c,MSJ_Inquiry_Assignment__c,MSJ_Inquiry_Date__c,MSJ_Inquiry_Input_Manager__c,MSJ_Inquiry_Input_User__c,MSJ_MSL_Manager__c,MSJ_Notice_to_MR__c,MSJ_Person_in_charge_1__c,MSJ_Person_in_charge_2__c,MSJ_Product_for_MEC__c,MSJ_Product_for_MR__c,MSJ_Reply_Date__c,MSJ_Reply_User__c,MSJ_Reply__c,MSJ_Title__c,MSJ_AE_Infomation__c,MSJ_FAQ_Number_Report__c,MSJ_Return_Call_Report__c,MSJ_Inquiry_Origin_Report__c,MSJ_AE_Report__c,MSJ_Background__c,MSJ_MSL_Support__c,MSJ_Material_Requirement__c,MSJ_Hospital_Name_Disp__c,MSJ_Hospital__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,address_line_1_vod__c,address_line_2_vod__c,city_vod__c,delivery_method_vod__c,email_vod__c,fax_number_vod__c,inquiry_text__c,lock_vod__c,mobile_id_vod__c,phone_number_vod__c,product__c,rush_delivery__c,signature_date_vod__c,signature_vod__c,state_vod__c,status_vod__c,zip_vod__c,zvod_delivery_method_vod__c,zvod_disclaimer_vod__c,submitted_by_mobile_vod__c,disclaimer_vod__c,entity_reference_id_vod__c,call2_vod__c,country_vod__c,override_lock_vod__c,msj_department__c,msj_doctor_name__c,msj_hospital_name__c,msj_indication__c,msj_inquiry_assignment__c,msj_inquiry_date__c,msj_inquiry_input_manager__c,msj_inquiry_input_user__c,msj_msl_manager__c,msj_notice_to_mr__c,msj_person_in_charge_1__c,msj_person_in_charge_2__c,msj_product_for_mec__c,msj_product_for_mr__c,msj_reply_date__c,msj_reply_user__c,msj_reply__c,msj_title__c,msj_ae_infomation__c,msj_faq_number_report__c,msj_return_call_report__c,msj_inquiry_origin_report__c,msj_ae_report__c,msj_background__c,msj_msl_support__c,msj_material_requirement__c,msj_hospital_name_disp__c,msj_hospital__c +src02.crm_medical_inquiry_vod__c +org02.crm_medical_inquiry_vod__c + + diff --git a/s3/data/crm/settings/CRM_Medical_Insight_vod__c.txt b/s3/data/crm/settings/CRM_Medical_Insight_vod__c.txt new file mode 100644 index 00000000..0c477d5d --- /dev/null +++ b/s3/data/crm/settings/CRM_Medical_Insight_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +54 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Clinical_Trial_vod__c,Date_vod__c,Description_vod__c,Entity_Reference_Id_vod__c,Interaction_vod__c,Medical_Event_vod__c,Mobile_ID_vod__c,Other_Source_vod__c,Override_Lock_vod__c,Publication_vod__c,Status_vod__c,Summary_vod__c,Unlock_vod__c,Commercial_Medical__c,MSJ_Level_1A__c,MSJ_Level_1B__c,MSJ_Level_2A__c,MSJ_Level_2B__c,MSJ_Level_3A__c,MSJ_Level_3B__c,MSJ_Level_4A__c,MSJ_Level_4B__c,MSJ_SubStatus__c,MSJ_Type_A__c,MSJ_Type_B__c,MSJ_Description_Backup__c,MSJ_Country__c,MSJ_Received_at_Boomi__c,MSJ_Level_1A_Value__c,MSJ_Level_1B_Value__c,MSJ_Level_2A_Value__c,MSJ_Level_2B_Value__c,MSJ_Level_3A_Value__c,MSJ_Level_3B_Value__c,MSJ_Level_4A_Value__c,MSJ_Level_4B_Value__c,MSJ_Hospital_ID__c,MSJ_Hospital_Name__c,MSJ_Hospital__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,clinical_trial_vod__c,date_vod__c,description_vod__c,entity_reference_id_vod__c,interaction_vod__c,medical_event_vod__c,mobile_id_vod__c,other_source_vod__c,override_lock_vod__c,publication_vod__c,status_vod__c,summary_vod__c,unlock_vod__c,commercial_medical__c,msj_level_1_a__c,msj_level_1_b__c,msj_level_2_a__c,msj_level_2_b__c,msj_level_3_a__c,msj_level_3_b__c,msj_level_4_a__c,msj_level_4_b__c,msj_sub_status__c,msj_type_a__c,msj_type_b__c,msj_description_backup__c,msj_country__c,msj_received_at_boomi__c,msj_level_1_a_value__c,msj_level_1_b_value__c,msj_level_2_a_value__c,msj_level_2_b_value__c,msj_level_3_a_value__c,msj_level_3_b_value__c,msj_level_4_a_value__c,msj_level_4_b_value__c,msj_hospital_id__c,msj_hospital_name__c,msj_hospital__c +src02.crm_medical_insight_vod__c +org02.crm_medical_insight_vod__c + + diff --git a/s3/data/crm/settings/CRM_Multichannel_Activity_Line_vod__c.txt b/s3/data/crm/settings/CRM_Multichannel_Activity_Line_vod__c.txt new file mode 100644 index 00000000..1b4ed66a --- /dev/null +++ b/s3/data/crm/settings/CRM_Multichannel_Activity_Line_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +35 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Multichannel_Activity_vod__c,Call_vod__c,Custom_vod__c,DateTime_vod__c,Debug_vod__c,Detail_Group_VExternal_Id_vod__c,Detail_Group_vod__c,Duration_vod__c,Event_Subtype_vod__c,Event_Type_vod__c,Key_Message_VExternal_Id_vod__c,Key_Message_vod__c,Multichannel_Content_Asset_Id_vod__c,Multichannel_Content_Asset_Version_vod__c,Multichannel_Content_Asset_vod__c,Multichannel_Content_vod__c,Product_VExternal_Id_vod__c,Product_vod__c,Sent_Email_vod__c,VExternal_Id_vod__c,Video_Last_Viewed_Time_vod__c,Video_Length_vod__c,Video_Total_Time_Spent_vod__c,View_Order_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,multichannel_activity_vod__c,call_vod__c,custom_vod__c,date_time_vod__c,debug_vod__c,detail_group_vexternal_id_vod__c,detail_group_vod__c,duration_vod__c,event_subtype_vod__c,event_type_vod__c,key_message_vexternal_id_vod__c,key_message_vod__c,multichannel_content_asset_id_vod__c,multichannel_content_asset_version_vod__c,multichannel_content_asset_vod__c,multichannel_content_vod__c,product_vexternal_id_vod__c,product_vod__c,sent_email_vod__c,vexternal_id_vod__c,video_last_viewed_time_vod__c,video_length_vod__c,video_total_time_spent_vod__c,view_order_vod__c +src02.crm_multichannel_activity_line_vod__c +org02.crm_multichannel_activity_line_vod__c + + diff --git a/s3/data/crm/settings/CRM_Multichannel_Activity_vod__c.txt b/s3/data/crm/settings/CRM_Multichannel_Activity_vod__c.txt new file mode 100644 index 00000000..9072d9e4 --- /dev/null +++ b/s3/data/crm/settings/CRM_Multichannel_Activity_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +47 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_External_ID_Map_vod__c,Account_vod__c,Call_vod__c,City_vod__c,Client_Name_vod__c,Client_OS_vod__c,Client_Type_vod__c,Country_vod__c,Debug_vod__c,Device_vod__c,IP_Address_vod__c,Multichannel_Activity_vod__c,Referring_Site_vod__c,Region_vod__c,Sent_Email_vod__c,Session_Id_vod__c,Site_vod__c,Start_DateTime_vod__c,Total_Duration_vod__c,URL_vod__c,User_Agent_vod__c,VExternal_Id_vod__c,Viewport_Height_vod__c,Viewport_Width_vod__c,Color_vod__c,Icon_vod__c,MCD_Primary_Key_vod__c,Record_Type_Name_vod__c,MSJ_Date_Opened__c,MSJ_Sent_Date__c,MSJ_Email_Subject__c,MSJ_Opens__c,MSJ_Email_Status__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_external_id_map_vod__c,account_vod__c,call_vod__c,city_vod__c,client_name_vod__c,client_os_vod__c,client_type_vod__c,country_vod__c,debug_vod__c,device_vod__c,ip_address_vod__c,multichannel_activity_vod__c,referring_site_vod__c,region_vod__c,sent_email_vod__c,session_id_vod__c,site_vod__c,start_date_time_vod__c,total_duration_vod__c,url_vod__c,user_agent_vod__c,vexternal_id_vod__c,viewport_height_vod__c,viewport_width_vod__c,color_vod__c,icon_vod__c,mcd_primary_key_vod__c,record_type_name_vod__c,msj_date_opened__c,msj_sent_date__c,msj_email_subject__c,msj_opens__c,msj_email_status__c +src02.crm_multichannel_activity_vod__c +org02.crm_multichannel_activity_vod__c + + diff --git a/s3/data/crm/settings/CRM_Multichannel_Consent_vod__c.txt b/s3/data/crm/settings/CRM_Multichannel_Consent_vod__c.txt new file mode 100644 index 00000000..be8d8b57 --- /dev/null +++ b/s3/data/crm/settings/CRM_Multichannel_Consent_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +48 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Capture_Datetime_vod__c,Channel_Value_vod__c,Detail_Group_vod__c,External_ID_vod__c,Last_Device_vod__c,Mobile_ID_vod__c,Opt_Expiration_Date_vod__c,Opt_Type_vod__c,Optout_Event_Type_vod__c,Product_vod__c,Signature_Datetime_vod__c,Signature_ID_vod__c,Signature_vod__c,Sample_Consent_Template_Data_vod__c,Sample_Consent_Template_vod__c,Consent_Line_vod__c,Consent_Type_vod__c,Default_Consent_Text_vod__c,Disclaimer_Text_vod__c,Sub_Channel_Key_vod__c,Consent_Confirm_Datetime_vod__c,Related_Transaction_Id_vod__c,Sent_Email_vod__c,Content_Type_vod__c,Receipt_Email_vod__c,Receipt_Sent_Email_Transaction_Id_vod__c,Receipt_Sent_Email_vod__c,Captured_By_vod__c,Opt_Out_Disclaimer_Text_vod__c,Channel_Source_vod__c,Union_Id_vod__c,User_Last_Notified_vod__c,Sub_Channel_Display_Name__c,MSJ_Consent_Source__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,capture_datetime_vod__c,channel_value_vod__c,detail_group_vod__c,external_id_vod__c,last_device_vod__c,mobile_id_vod__c,opt_expiration_date_vod__c,opt_type_vod__c,optout_event_type_vod__c,product_vod__c,signature_datetime_vod__c,signature_id_vod__c,signature_vod__c,sample_consent_template_data_vod__c,sample_consent_template_vod__c,consent_line_vod__c,consent_type_vod__c,default_consent_text_vod__c,disclaimer_text_vod__c,sub_channel_key_vod__c,consent_confirm_datetime_vod__c,related_transaction_id_vod__c,sent_email_vod__c,content_type_vod__c,receipt_email_vod__c,receipt_sent_email_transaction_id_vod__c,receipt_sent_email_vod__c,captured_by_vod__c,opt_out_disclaimer_text_vod__c,channel_source_vod__c,union_id_vod__c,user_last_notified_vod__c,sub_channel_display_name__c,msj_consent_source__c +src02.crm_multichannel_consent_vod__c +org02.crm_multichannel_consent_vod__c + + diff --git a/s3/data/crm/settings/CRM_My_Setup_Products_vod__c.txt b/s3/data/crm/settings/CRM_My_Setup_Products_vod__c.txt new file mode 100644 index 00000000..47c71f53 --- /dev/null +++ b/s3/data/crm/settings/CRM_My_Setup_Products_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +12 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Product_vod__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,product_vod__c +src02.crm_my_setup_products_vod__c +org02.crm_my_setup_products_vod__c + + diff --git a/s3/data/crm/settings/CRM_ObjectTerritory2Association.txt b/s3/data/crm/settings/CRM_ObjectTerritory2Association.txt new file mode 100644 index 00000000..fff7b033 --- /dev/null +++ b/s3/data/crm/settings/CRM_ObjectTerritory2Association.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +9 +Id,ObjectId,Territory2Id,AssociationCause,SobjectType,IsDeleted,LastModifiedDate,LastModifiedById,SystemModstamp +id,object_id,territory2_id,association_cause,sobject_type,is_deleted,last_modified_date,last_modified_by_id,system_modstamp +src02.crm_object_territory2_association +org02.crm_object_territory2_association +CRM_ObjectTerritory2Association_ex.sql + diff --git a/s3/data/crm/settings/CRM_ObjectTerritory2Association_ex.sql b/s3/data/crm/settings/CRM_ObjectTerritory2Association_ex.sql new file mode 100644 index 00000000..d142c071 --- /dev/null +++ b/s3/data/crm/settings/CRM_ObjectTerritory2Association_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_object_territory2_association', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Product_Group_vod__c.txt b/s3/data/crm/settings/CRM_Product_Group_vod__c.txt new file mode 100644 index 00000000..7b6c6cff --- /dev/null +++ b/s3/data/crm/settings/CRM_Product_Group_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +17 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Description_vod__c,Product_vod__c,Product_Catalog_vod__c,Start_Date_vod__c,End_Date_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,description_vod__c,product_vod__c,product_catalog_vod__c,start_date_vod__c,end_date_vod__c +src02.crm_product_group_vod__c +org02.crm_product_group_vod__c + + diff --git a/s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt b/s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt new file mode 100644 index 00000000..4629f0eb --- /dev/null +++ b/s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +52 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Awareness__c,Selling_Stage__c,Formulary_Status__c,Movement__c,Products_vod__c,Segment__c,X12_mo_trx_chg__c,Speaker_Skills__c,Investigator_Readiness__c,Engagements__c,Mobile_ID_vod__c,External_ID_vod__c,MSJ_Patient__c,Detail_Group_vod__c,MSJ_EB_1st_Line_Liver_Meta__c,MSJ_EB_1st_Line_Multi_Meta__c,MSJ_EB_2nd_Line_Mono__c,MSJ_EB_2nd_Line_Combination__c,MSJ_EB_3rd_Line_Mono__c,MSJ_EB_3rd_Line_Combination__c,EMDS_Ability__c,EMDS_Brand_Loyalty__c,EMDS_Decision_Maker__c,EMDS_Early_Tech_Adopter__c,EMDS_Influence__c,EMDS_Main_Driver__c,EMDS_Priority__c,EMDS_Willingness__c,MSJ_KTL_Type__c,MSJ_KTL_Tier__c,MSJ_Publications__c,MSJ_Clinical_Trials__c,MSJ_Speaker_for_Medical_Events__c,MSJ_Advisor_to_Medical_Affairs__c,MSJ_Guidelines_Treatment_Standards__c,MSJ_Therapeutic_Area_Expertise__c,MSJ_MAP_GAP__c,MSJ_Associations__c,MSJ_Tier_Score__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,awareness__c,selling_stage__c,formulary_status__c,movement__c,products_vod__c,segment__c,x12_mo_trx_chg__c,speaker_skills__c,investigator_readiness__c,engagements__c,mobile_id_vod__c,external_id_vod__c,msj_patient__c,detail_group_vod__c,msj_eb_1st_line_liver_meta__c,msj_eb_1st_line_multi_meta__c,msj_eb_2nd_line_mono__c,msj_eb_2nd_line_combination__c,msj_eb_3rd_line_mono__c,msj_eb_3rd_line_combination__c,emds_ability__c,emds_brand_loyalty__c,emds_decision_maker__c,emds_early_tech_adopter__c,emds_influence__c,emds_main_driver__c,emds_priority__c,emds_willingness__c,msj_ktl_type__c,msj_ktl_tier__c,msj_publications__c,msj_clinical_trials__c,msj_speaker_for_medical_events__c,msj_advisor_to_medical_affairs__c,msj_guidelines_treatment_standards__c,msj_therapeutic_area_expertise__c,msj_map_gap__c,msj_associations__c,msj_tier_score__c +src02.crm_product_metrics_vod__c +org02.crm_product_metrics_vod__c +CRM_Product_Metrics_vod__c_ex.sql + diff --git a/s3/data/crm/settings/CRM_Product_Metrics_vod__c_ex.sql b/s3/data/crm/settings/CRM_Product_Metrics_vod__c_ex.sql new file mode 100644 index 00000000..af2e678e --- /dev/null +++ b/s3/data/crm/settings/CRM_Product_Metrics_vod__c_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_product_metrics_vod__c', 'system_modstamp'); \ No newline at end of file diff --git a/s3/data/crm/settings/CRM_Product_vod__c.txt b/s3/data/crm/settings/CRM_Product_vod__c.txt new file mode 100644 index 00000000..843cec84 --- /dev/null +++ b/s3/data/crm/settings/CRM_Product_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +46 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Consumer_site__c,Product_info__c,Therapeutic_Class_vod__c,Parent_Product_vod__c,Therapeutic_Area_vod__c,Product_Type_vod__c,Require_Key_Message_vod__c,Cost_vod__c,External_ID_vod__c,Manufacturer_vod__c,Company_Product_vod__c,Controlled_Substance_vod__c,Description_vod__c,Sample_Quantity_Picklist_vod__c,Display_Order_vod__c,No_Metrics_vod__c,Distributor_vod__c,Sample_Quantity_Bound_vod__c,Sample_U_M_vod__c,No_Details_vod__c,Quantity_Per_Case_vod__c,Schedule_vod__c,Restricted_vod__c,Pricing_Rule_Quantity_Bound_vod__c,No_Promo_Items_vod__c,User_Aligned_vod__c,Restricted_States_vod__c,Sort_Code_vod__c,No_Cycle_Plans_vod__c,Inventory_Order_UOM_vod__c,Inventory_Quantity_Per_Case_vod__c,VExternal_Id_vod__c,Country__c,MSJ_Product_Classification__c,MSJ_Indication__c,MSJ_Therapeutic_Area__c,MSJ_Global_Brand__c,MSJ_Global_Business_Unit__c,MSJ_Molecules__c,MSJ_SBU__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,consumer_site__c,product_info__c,therapeutic_class_vod__c,parent_product_vod__c,therapeutic_area_vod__c,product_type_vod__c,require_key_message_vod__c,cost_vod__c,external_id_vod__c,manufacturer_vod__c,company_product_vod__c,controlled_substance_vod__c,description_vod__c,sample_quantity_picklist_vod__c,display_order_vod__c,no_metrics_vod__c,distributor_vod__c,sample_quantity_bound_vod__c,sample_u_m_vod__c,no_details_vod__c,quantity_per_case_vod__c,schedule_vod__c,restricted_vod__c,pricing_rule_quantity_bound_vod__c,no_promo_items_vod__c,user_aligned_vod__c,restricted_states_vod__c,sort_code_vod__c,no_cycle_plans_vod__c,inventory_order_uom_vod__c,inventory_quantity_per_case_vod__c,vexternal_id_vod__c,country__c,msj_product_classification__c,msj_indication__c,msj_therapeutic_area__c,msj_global_brand__c,msj_global_business_unit__c,msj_molecules__c,msj_sbu__c +src02.crm_product_vod__c +org02.crm_product_vod__c + + diff --git a/s3/data/crm/settings/CRM_Profile.txt b/s3/data/crm/settings/CRM_Profile.txt new file mode 100644 index 00000000..558ce629 --- /dev/null +++ b/s3/data/crm/settings/CRM_Profile.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +237 +Id,Name,PermissionsEmailSingle,PermissionsEmailMass,PermissionsEditTask,PermissionsEditEvent,PermissionsExportReport,PermissionsImportPersonal,PermissionsDataExport,PermissionsManageUsers,PermissionsEditPublicFilters,PermissionsEditPublicTemplates,PermissionsModifyAllData,PermissionsManageCases,PermissionsManageSolutions,PermissionsCustomizeApplication,PermissionsEditReadonlyFields,PermissionsRunReports,PermissionsViewSetup,PermissionsTransferAnyEntity,PermissionsNewReportBuilder,PermissionsManageSelfService,PermissionsManageCssUsers,PermissionsActivateContract,PermissionsApproveContract,PermissionsImportLeads,PermissionsManageLeads,PermissionsTransferAnyLead,PermissionsViewAllData,PermissionsEditPublicDocuments,PermissionsViewEncryptedData,PermissionsEditBrandTemplates,PermissionsEditHtmlTemplates,PermissionsManageTranslation,PermissionsDeleteActivatedContract,PermissionsSendSitRequests,PermissionsApiUserOnly,PermissionsManageRemoteAccess,PermissionsCanUseNewDashboardBuilder,PermissionsManageCategories,PermissionsConvertLeads,PermissionsTestInstanceCreate,PermissionsPasswordNeverExpires,PermissionsUseTeamReassignWizards,PermissionsInstallMultiforce,PermissionsPublishMultiforce,PermissionsEditOppLineItemUnitPrice,PermissionsManageTerritories,PermissionsCreateMultiforce,PermissionsBulkApiHardDelete,PermissionsInboundMigrationToolsUser,PermissionsSolutionImport,PermissionsManageCallCenters,PermissionsManageSynonyms,PermissionsOutboundMigrationToolsUser,PermissionsViewContent,PermissionsManageEmailClientConfig,PermissionsEnableNotifications,PermissionsManageDataIntegrations,PermissionsDistributeFromPersWksp,PermissionsViewDataCategories,PermissionsManageDataCategories,PermissionsAuthorApex,PermissionsManageMobile,PermissionsApiEnabled,PermissionsManageCustomReportTypes,PermissionsEditCaseComments,PermissionsTransferAnyCase,PermissionsContentAdministrator,PermissionsCreateWorkspaces,PermissionsManageContentPermissions,PermissionsManageContentProperties,PermissionsManageContentTypes,PermissionsScheduleJob,PermissionsManageExchangeConfig,PermissionsManageAnalyticSnapshots,PermissionsScheduleReports,PermissionsManageBusinessHourHolidays,PermissionsManageDynamicDashboards,PermissionsManageInteraction,PermissionsViewMyTeamsDashboards,PermissionsResetPasswords,PermissionsFlowUFLRequired,PermissionsActivitiesAccess,PermissionsEmailTemplateManagement,PermissionsEmailAdministration,PermissionsChatterFileLink,PermissionsForceTwoFactor,PermissionsViewEventLogFiles,PermissionsManageNetworks,PermissionsManageAuthProviders,PermissionsRunFlow,PermissionsCreateCustomizeDashboards,PermissionsCreateDashboardFolders,PermissionsViewPublicDashboards,PermissionsManageDashbdsInPubFolders,PermissionsCreateCustomizeReports,PermissionsCreateReportFolders,PermissionsViewPublicReports,PermissionsManageReportsInPubFolders,PermissionsEditMyDashboards,PermissionsEditMyReports,PermissionsViewAllUsers,PermissionsConnectOrgToEnvironmentHub,PermissionsCreateCustomizeFilters,PermissionsContentHubUser,PermissionsGovernNetworks,PermissionsSalesConsole,PermissionsTwoFactorApi,PermissionsDeleteTopics,PermissionsEditTopics,PermissionsCreateTopics,PermissionsAssignTopics,PermissionsIdentityEnabled,PermissionsIdentityConnect,PermissionsContentWorkspaces,PermissionsCustomMobileAppsAccess,PermissionsViewHelpLink,PermissionsManageProfilesPermissionsets,PermissionsAssignPermissionSets,PermissionsManageRoles,PermissionsManageIpAddresses,PermissionsManageSharing,PermissionsManageInternalUsers,PermissionsManagePasswordPolicies,PermissionsManageLoginAccessPolicies,PermissionsManageCustomPermissions,PermissionsStdAutomaticActivityCapture,PermissionsManageTwoFactor,PermissionsDebugApex,PermissionsLightningExperienceUser,PermissionsConfigCustomRecs,PermissionsSubmitMacrosAllowed,PermissionsBulkMacrosAllowed,PermissionsManageSessionPermissionSets,PermissionsCreateAuditFields,PermissionsUpdateWithInactiveOwner,PermissionsManageSandboxes,PermissionsAutomaticActivityCapture,PermissionsImportCustomObjects,PermissionsDelegatedTwoFactor,PermissionsSelectFilesFromSalesforce,PermissionsModerateNetworkUsers,PermissionsMergeTopics,PermissionsSubscribeToLightningReports,PermissionsManagePvtRptsAndDashbds,PermissionsAllowLightningLogin,PermissionsCampaignInfluence2,PermissionsViewDataAssessment,PermissionsCanApproveFeedPost,PermissionsAllowViewEditConvertedLeads,PermissionsShowCompanyNameAsUserBadge,PermissionsAccessCMC,PermissionsViewHealthCheck,PermissionsManageHealthCheck,PermissionsPackaging2,PermissionsManageCertificates,PermissionsCreateReportInLightning,PermissionsPreventClassicExperience,PermissionsListEmailSend,PermissionsChangeDashboardColors,PermissionsManageRecommendationStrategies,PermissionsManagePropositions,PermissionsSubscribeReportRolesGrps,PermissionsSubscribeDashboardRolesGrps,PermissionsUseWebLink,PermissionsHasUnlimitedNBAExecutions,PermissionsViewOnlyEmbeddedAppUser,PermissionsViewAllActivities,PermissionsSubscribeReportToOtherUsers,PermissionsLightningConsoleAllowedForUser,PermissionsSubscribeReportsRunAsUser,PermissionsSubscribeToLightningDashboards,PermissionsSubscribeDashboardToOtherUsers,PermissionsCreateLtngTempInPub,PermissionsTransactionalEmailSend,PermissionsViewPrivateStaticResources,PermissionsCreateLtngTempFolder,PermissionsApexRestServices,PermissionsEnableCommunityAppLauncher,PermissionsGiveRecognitionBadge,PermissionsUseMySearch,PermissionsLtngPromoReserved01UserPerm,PermissionsManageSubscriptions,PermissionsManageSurveys,PermissionsUseAssistantDialog,PermissionsUseQuerySuggestions,PermissionsViewRoles,PermissionsLMOutboundMessagingUserPerm,PermissionsModifyDataClassification,PermissionsPrivacyDataAccess,PermissionsQueryAllFiles,PermissionsModifyMetadata,PermissionsManageCMS,PermissionsSandboxTestingInCommunityApp,PermissionsCanEditPrompts,PermissionsViewUserPII,PermissionsManageHubConnections,PermissionsB2BMarketingAnalyticsUser,PermissionsTraceXdsQueries,PermissionsViewAllCustomSettings,PermissionsViewAllForeignKeyNames,PermissionsHeadlessCMSAccess,PermissionsLMEndMessagingSessionUserPerm,PermissionsConsentApiUpdate,PermissionsAccessContentBuilder,PermissionsAccountSwitcherUser,PermissionsManageC360AConnections,PermissionsManageReleaseUpdates,PermissionsViewAllProfiles,PermissionsSkipIdentityConfirmation,PermissionsSendCustomNotifications,PermissionsPackaging2Delete,PermissionsFSCComprehensiveUserAccess,PermissionsManageTrustMeasures,PermissionsViewTrustMeasures,PermissionsIsotopeCToCUser,PermissionsIsotopeAccess,PermissionsIsotopeLEX,PermissionsQuipMetricsAccess,PermissionsQuipUserEngagementMetrics,PermissionsManageExternalConnections,PermissionsAIViewInsightObjects,PermissionsAICreateInsightObjects,PermissionsNativeWebviewScrolling,PermissionsViewDeveloperName,Type,UserLicenseId,UserType,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,Description,LastViewedDate,LastReferencedDate +id,name,permissions_email_single,permissions_email_mass,permissions_edit_task,permissions_edit_event,permissions_export_report,permissions_import_personal,permissions_data_export,permissions_manage_users,permissions_edit_public_filters,permissions_edit_public_templates,permissions_modify_all_data,permissions_manage_cases,permissions_manage_solutions,permissions_customize_application,permissions_edit_readonly_fields,permissions_run_reports,permissions_view_setup,permissions_transfer_any_entity,permissions_new_report_builder,permissions_manage_self_service,permissions_manage_css_users,permissions_activate_contract,permissions_approve_contract,permissions_import_leads,permissions_manage_leads,permissions_transfer_any_lead,permissions_view_all_data,permissions_edit_public_documents,permissions_view_encrypted_data,permissions_edit_brand_templates,permissions_edit_html_templates,permissions_manage_translation,permissions_delete_activated_contract,permissions_send_sit_requests,permissions_api_user_only,permissions_manage_remote_access,permissions_can_use_new_dashboard_builder,permissions_manage_categories,permissions_convert_leads,permissions_test_instance_create,permissions_password_never_expires,permissions_use_team_reassign_wizards,permissions_install_multiforce,permissions_publish_multiforce,permissions_edit_opp_line_item_unit_price,permissions_manage_territories,permissions_create_multiforce,permissions_bulk_api_hard_delete,permissions_inbound_migration_tools_user,permissions_solution_import,permissions_manage_call_centers,permissions_manage_synonyms,permissions_outbound_migration_tools_user,permissions_view_content,permissions_manage_email_client_config,permissions_enable_notifications,permissions_manage_data_integrations,permissions_distribute_from_pers_wksp,permissions_view_data_categories,permissions_manage_data_categories,permissions_author_apex,permissions_manage_mobile,permissions_api_enabled,permissions_manage_custom_report_types,permissions_edit_case_comments,permissions_transfer_any_case,permissions_content_administrator,permissions_create_workspaces,permissions_manage_content_permissions,permissions_manage_content_properties,permissions_manage_content_types,permissions_schedule_job,permissions_manage_exchange_config,permissions_manage_analytic_snapshots,permissions_schedule_reports,permissions_manage_business_hour_holidays,permissions_manage_dynamic_dashboards,permissions_manage_interaction,permissions_view_my_teams_dashboards,permissions_reset_passwords,permissions_flow_uflrequired,permissions_activities_access,permissions_email_template_management,permissions_email_administration,permissions_chatter_file_link,permissions_force_two_factor,permissions_view_event_log_files,permissions_manage_networks,permissions_manage_auth_providers,permissions_run_flow,permissions_create_customize_dashboards,permissions_create_dashboard_folders,permissions_view_public_dashboards,permissions_manage_dashbds_in_pub_folders,permissions_create_customize_reports,permissions_create_report_folders,permissions_view_public_reports,permissions_manage_reports_in_pub_folders,permissions_edit_my_dashboards,permissions_edit_my_reports,permissions_view_all_users,permissions_connect_org_to_environment_hub,permissions_create_customize_filters,permissions_content_hub_user,permissions_govern_networks,permissions_sales_console,permissions_two_factor_api,permissions_delete_topics,permissions_edit_topics,permissions_create_topics,permissions_assign_topics,permissions_identity_enabled,permissions_identity_connect,permissions_content_workspaces,permissions_custom_mobile_apps_access,permissions_view_help_link,permissions_manage_profiles_permissionsets,permissions_assign_permission_sets,permissions_manage_roles,permissions_manage_ip_addresses,permissions_manage_sharing,permissions_manage_internal_users,permissions_manage_password_policies,permissions_manage_login_access_policies,permissions_manage_custom_permissions,permissions_std_automatic_activity_capture,permissions_manage_two_factor,permissions_debug_apex,permissions_lightning_experience_user,permissions_config_custom_recs,permissions_submit_macros_allowed,permissions_bulk_macros_allowed,permissions_manage_session_permission_sets,permissions_create_audit_fields,permissions_update_with_inactive_owner,permissions_manage_sandboxes,permissions_automatic_activity_capture,permissions_import_custom_objects,permissions_delegated_two_factor,permissions_select_files_from_salesforce,permissions_moderate_network_users,permissions_merge_topics,permissions_subscribe_to_lightning_reports,permissions_manage_pvt_rpts_and_dashbds,permissions_allow_lightning_login,permissions_campaign_influence2,permissions_view_data_assessment,permissions_can_approve_feed_post,permissions_allow_view_edit_converted_leads,permissions_show_company_name_as_user_badge,permissions_access_cmc,permissions_view_health_check,permissions_manage_health_check,permissions_packaging2,permissions_manage_certificates,permissions_create_report_in_lightning,permissions_prevent_classic_experience,permissions_list_email_send,permissions_change_dashboard_colors,permissions_manage_recommendation_strategies,permissions_manage_propositions,permissions_subscribe_report_roles_grps,permissions_subscribe_dashboard_roles_grps,permissions_use_web_link,permissions_has_unlimited_nbaexecutions,permissions_view_only_embedded_app_user,permissions_view_all_activities,permissions_subscribe_report_to_other_users,permissions_lightning_console_allowed_for_user,permissions_subscribe_reports_run_as_user,permissions_subscribe_to_lightning_dashboards,permissions_subscribe_dashboard_to_other_users,permissions_create_ltng_temp_in_pub,permissions_transactional_email_send,permissions_view_private_static_resources,permissions_create_ltng_temp_folder,permissions_apex_rest_services,permissions_enable_community_app_launcher,permissions_give_recognition_badge,permissions_use_my_search,permissions_ltng_promo_reserved01_user_perm,permissions_manage_subscriptions,permissions_manage_surveys,permissions_use_assistant_dialog,permissions_use_query_suggestions,permissions_view_roles,permissions_lmoutbound_messaging_user_perm,permissions_modify_data_classification,permissions_privacy_data_access,permissions_query_all_files,permissions_modify_metadata,permissions_manage_cms,permissions_sandbox_testing_in_community_app,permissions_can_edit_prompts,permissions_view_user_pii,permissions_manage_hub_connections,permissions_b2_bmarketing_analytics_user,permissions_trace_xds_queries,permissions_view_all_custom_settings,permissions_view_all_foreign_key_names,permissions_headless_cmsaccess,permissions_lmend_messaging_session_user_perm,permissions_consent_api_update,permissions_access_content_builder,permissions_account_switcher_user,permissions_manage_c360_aconnections,permissions_manage_release_updates,permissions_view_all_profiles,permissions_skip_identity_confirmation,permissions_send_custom_notifications,permissions_packaging2_delete,permissions_fsccomprehensive_user_access,permissions_manage_trust_measures,permissions_view_trust_measures,permissions_isotope_cto_cuser,permissions_isotope_access,permissions_isotope_lex,permissions_quip_metrics_access,permissions_quip_user_engagement_metrics,permissions_manage_external_connections,permissions_aiview_insight_objects,permissions_aicreate_insight_objects,permissions_native_webview_scrolling,permissions_view_developer_name,type,user_license_id,user_type,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,description,last_viewed_date,last_referenced_date +src02.crm_profile +org02.crm_profile +CRM_Profile_ex.sql + diff --git a/s3/data/crm/settings/CRM_Profile_ex.sql b/s3/data/crm/settings/CRM_Profile_ex.sql new file mode 100644 index 00000000..b858ab02 --- /dev/null +++ b/s3/data/crm/settings/CRM_Profile_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_profile', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Question_Response_vod__c.txt b/s3/data/crm/settings/CRM_Question_Response_vod__c.txt new file mode 100644 index 00000000..a994ab4a --- /dev/null +++ b/s3/data/crm/settings/CRM_Question_Response_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +30 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Survey_Target_vod__c,Answer_Choice_vod__c,Date_vod__c,Datetime_vod__c,External_ID_vod__c,Mobile_ID_vod__c,Number_vod__c,Order_vod__c,Question_Text_vod__c,Required_vod__c,Response_Hash_vod__c,Response_vod__c,Score_vod__c,Survey_Question_vod__c,Text_vod__c,Type_vod__c,Condition_vod__c,Inactive_Condition_vod__c,Source_ID_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,survey_target_vod__c,answer_choice_vod__c,date_vod__c,datetime_vod__c,external_id_vod__c,mobile_id_vod__c,number_vod__c,order_vod__c,question_text_vod__c,required_vod__c,response_hash_vod__c,response_vod__c,score_vod__c,survey_question_vod__c,text_vod__c,type_vod__c,condition_vod__c,inactive_condition_vod__c,source_id_vod__c +src02.crm_question_response_vod__c +org02.crm_question_response_vod__c + + diff --git a/s3/data/crm/settings/CRM_RecordType.txt b/s3/data/crm/settings/CRM_RecordType.txt new file mode 100644 index 00000000..78960693 --- /dev/null +++ b/s3/data/crm/settings/CRM_RecordType.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +14 +Id,Name,DeveloperName,NamespacePrefix,Description,BusinessProcessId,SobjectType,IsActive,IsPersonType,CreatedById,CreatedDate,LastModifiedById,LastModifiedDate,SystemModstamp +id,name,developer_name,namespace_prefix,description,business_process_id,sobject_type,is_active,is_person_type,created_by_id,created_date,last_modified_by_id,last_modified_date,system_modstamp +src02.crm_record_type +org02.crm_record_type + + diff --git a/s3/data/crm/settings/CRM_Remote_Meeting_vod__c.txt b/s3/data/crm/settings/CRM_Remote_Meeting_vod__c.txt new file mode 100644 index 00000000..1b4827c9 --- /dev/null +++ b/s3/data/crm/settings/CRM_Remote_Meeting_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +24 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Meeting_Id_vod__c,Meeting_Name_vod__c,Mobile_ID_vod__c,Scheduled_DateTime_vod__c,Scheduled_vod__c,Attendance_Report_Process_Status_vod__c,Latest_Meeting_Start_Datetime_vod__c,Meeting_Password_vod__c,Meeting_Outcome_Status_vod__c,Allow_for_Joining_via_Zoom_vod__c,Zoom_Join_Token_vod__c,VExternal_Id_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,meeting_id_vod__c,meeting_name_vod__c,mobile_id_vod__c,scheduled_date_time_vod__c,scheduled_vod__c,attendance_report_process_status_vod__c,latest_meeting_start_datetime_vod__c,meeting_password_vod__c,meeting_outcome_status_vod__c,allow_for_joining_via_zoom_vod__c,zoom_join_token_vod__c,vexternal_id_vod__c +src02.crm_remote_meeting_vod__c +org02.crm_remote_meeting_vod__c + + diff --git a/s3/data/crm/settings/CRM_Sent_Email_vod__c.txt b/s3/data/crm/settings/CRM_Sent_Email_vod__c.txt new file mode 100644 index 00000000..148ed757 --- /dev/null +++ b/s3/data/crm/settings/CRM_Sent_Email_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +65 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,Account_Email_vod__c,Account_vod__c,Approved_Email_Template_vod__c,Capture_Datetime_vod__c,Detail_Group_vod__c,Email_Config_Values_vod__c,Email_Content2_vod__c,Email_Content_vod__c,Email_Fragments_vod__c,Email_Sent_Date_vod__c,Failure_Msg_vod__c,Last_Activity_Date_vod__c,Last_Device_vod__c,MC_Capture_Datetime_vod__c,Mobile_ID_vod__c,Opened_vod__c,Product_Display_vod__c,Product_vod__c,Sender_Email_vod__c,Status_vod__c,Valid_Consent_Exists_vod__c,Approved_Document_Views_vod__c,Click_Count_vod__c,Last_Click_Date_vod__c,Last_Open_Date_vod__c,Open_Count_vod__c,Receipt_Entity_Type_vod__c,Receipt_Record_Id_vod__c,Territory_vod__c,Call2_vod__c,Medical_Inquiry_vod__c,Parent_Email_vod__c,Related_Transaction_ID_vod__c,Case_vod__c,Key_Message_vod__c,Suggestion_vod__c,EM_Attendee_vod__c,EM_Event_Speaker_vod__c,EM_Event_Team_Member_vod__c,Event_Attendee_vod__c,Event_vod__c,Medical_Event_vod__c,Scheduled_Send_Datetime_vod__c,User_vod__c,Content_Type_vod__c,Bcc_vod__c,Event_Attendee_Mobile_Id_vod__c,Event_Mobile_Id_vod__c,Activity_Tracking_Mode_vod__c,Email_Source_vod__c,Subject_vod__c,User_Input_Text_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,account_email_vod__c,account_vod__c,approved_email_template_vod__c,capture_datetime_vod__c,detail_group_vod__c,email_config_values_vod__c,email_content2_vod__c,email_content_vod__c,email_fragments_vod__c,email_sent_date_vod__c,failure_msg_vod__c,last_activity_date_vod__c,last_device_vod__c,mc_capture_datetime_vod__c,mobile_id_vod__c,opened_vod__c,product_display_vod__c,product_vod__c,sender_email_vod__c,status_vod__c,valid_consent_exists_vod__c,approved_document_views_vod__c,click_count_vod__c,last_click_date_vod__c,last_open_date_vod__c,open_count_vod__c,receipt_entity_type_vod__c,receipt_record_id_vod__c,territory_vod__c,call2_vod__c,medical_inquiry_vod__c,parent_email_vod__c,related_transaction_id_vod__c,case_vod__c,key_message_vod__c,suggestion_vod__c,em_attendee_vod__c,em_event_speaker_vod__c,em_event_team_member_vod__c,event_attendee_vod__c,event_vod__c,medical_event_vod__c,scheduled_send_datetime_vod__c,user_vod__c,content_type_vod__c,bcc_vod__c,event_attendee_mobile_id_vod__c,event_mobile_id_vod__c,activity_tracking_mode_vod__c,email_source_vod__c,subject_vod__c,user_input_text_vod__c +src02.crm_sent_email_vod__c +org02.crm_sent_email_vod__c + + diff --git a/s3/data/crm/settings/CRM_Sent_Fragment_vod__c.txt b/s3/data/crm/settings/CRM_Sent_Fragment_vod__c.txt new file mode 100644 index 00000000..c93f9f9e --- /dev/null +++ b/s3/data/crm/settings/CRM_Sent_Fragment_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +16 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,Sent_Email_vod__c,Account_vod__c,Email_Template_vod__c,Sent_Fragment_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,sent_email_vod__c,account_vod__c,email_template_vod__c,sent_fragment_vod__c +src02.crm_sent_fragment_vod__c +org02.crm_sent_fragment_vod__c + + diff --git a/s3/data/crm/settings/CRM_Survey_Question_vod__c.txt b/s3/data/crm/settings/CRM_Survey_Question_vod__c.txt new file mode 100644 index 00000000..3a636f0a --- /dev/null +++ b/s3/data/crm/settings/CRM_Survey_Question_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +23 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Survey_vod__c,Answer_Choice_vod__c,External_ID_vod__c,Max_Score_vod__c,Min_Score_vod__c,Order_vod__c,Question_vod__c,Required_vod__c,Text_vod__c,Condition_vod__c,Source_ID_vod__c,MSJ_External_ID__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,survey_vod__c,answer_choice_vod__c,external_id_vod__c,max_score_vod__c,min_score_vod__c,order_vod__c,question_vod__c,required_vod__c,text_vod__c,condition_vod__c,source_id_vod__c,msj_external_id__c +src02.crm_survey_question_vod__c +org02.crm_survey_question_vod__c + + diff --git a/s3/data/crm/settings/CRM_Survey_Target_vod__c.txt b/s3/data/crm/settings/CRM_Survey_Target_vod__c.txt new file mode 100644 index 00000000..f9f80626 --- /dev/null +++ b/s3/data/crm/settings/CRM_Survey_Target_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +39 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_Display_Name_vod__c,Account_vod__c,Channels_vod__c,End_Date_vod__c,Entity_Reference_Id_vod__c,External_ID_vod__c,Language_vod__c,Lock_vod__c,Mobile_ID_vod__c,No_Autoassign_vod__c,Not_Completed_vod__c,Region_vod__c,Segment_vod__c,Start_Date_vod__c,Status_vod__c,Survey_vod__c,Territory_vod__c,zvod_Address_vod__c,zvod_Specialty_vod__c,Score_vod__c,User_vod__c,Child_Account_vod__c,Location_Entity_Reference_Id_vod__c,Location_vod__c,Target_Type_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_display_name_vod__c,account_vod__c,channels_vod__c,end_date_vod__c,entity_reference_id_vod__c,external_id_vod__c,language_vod__c,lock_vod__c,mobile_id_vod__c,no_autoassign_vod__c,not_completed_vod__c,region_vod__c,segment_vod__c,start_date_vod__c,status_vod__c,survey_vod__c,territory_vod__c,zvod_address_vod__c,zvod_specialty_vod__c,score_vod__c,user_vod__c,child_account_vod__c,location_entity_reference_id_vod__c,location_vod__c,target_type_vod__c +src02.crm_survey_target_vod__c +org02.crm_survey_target_vod__c + + diff --git a/s3/data/crm/settings/CRM_Survey_vod__c.txt b/s3/data/crm/settings/CRM_Survey_vod__c.txt new file mode 100644 index 00000000..bfd04a2e --- /dev/null +++ b/s3/data/crm/settings/CRM_Survey_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +37 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Assignment_Type_vod__c,Channels_vod__c,End_Date_vod__c,Expired_vod__c,External_ID_vod__c,Language_vod__c,Lock_vod__c,Open_vod__c,Product_vod__c,Region_vod__c,Segment_vod__c,Start_Date_vod__c,Status_vod__c,Territory_vod__c,zvod_Questions_vod__c,zvod_Segments_vod__c,zvod_Targets_vod__c,Max_Score_vod__c,Min_Score_vod__c,Autotarget_vod__c,Territories_vod__c,Target_Type_vod__c,MSJ_External_ID__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,assignment_type_vod__c,channels_vod__c,end_date_vod__c,expired_vod__c,external_id_vod__c,language_vod__c,lock_vod__c,open_vod__c,product_vod__c,region_vod__c,segment_vod__c,start_date_vod__c,status_vod__c,territory_vod__c,zvod_questions_vod__c,zvod_segments_vod__c,zvod_targets_vod__c,max_score_vod__c,min_score_vod__c,autotarget_vod__c,territories_vod__c,target_type_vod__c,msj_external_id__c +src02.crm_survey_vod__c +org02.crm_survey_vod__c + + diff --git a/s3/data/crm/settings/CRM_Territory2.txt b/s3/data/crm/settings/CRM_Territory2.txt new file mode 100644 index 00000000..5486b657 --- /dev/null +++ b/s3/data/crm/settings/CRM_Territory2.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +15 +Id,Name,Territory2TypeId,Territory2ModelId,ParentTerritory2Id,Description,ForecastUserId,AccountAccessLevel,OpportunityAccessLevel,CaseAccessLevel,ContactAccessLevel,LastModifiedDate,LastModifiedById,SystemModstamp,DeveloperName,MSJ_Territory_Type__c,MSJ_Level__c +id,name,territory2_type_id,territory2_model_id,parent_territory2_id,description,forecast_user_id,account_access_level,opportunity_access_level,case_access_level,contact_access_level,last_modified_date,last_modified_by_id,system_modstamp,developer_name,msj_territory_type__c,msj_level__c +src02.crm_territory2 +org02.crm_territory2 +CRM_Territory2_ex.sql + diff --git a/s3/data/crm/settings/CRM_Territory2_ALL.txt b/s3/data/crm/settings/CRM_Territory2_ALL.txt new file mode 100644 index 00000000..525e1796 --- /dev/null +++ b/s3/data/crm/settings/CRM_Territory2_ALL.txt @@ -0,0 +1,14 @@ +CRM +, +utf-8 +" +CRLF +1 +15 +Id,Name,Territory2TypeId,Territory2ModelId,ParentTerritory2Id,Description,ForecastUserId,AccountAccessLevel,OpportunityAccessLevel,CaseAccessLevel,ContactAccessLevel,LastModifiedDate,LastModifiedById,SystemModstamp,DeveloperName +id,name,territory2_type_id,territory2_model_id,parent_territory2_id,description,forecast_user_id,account_access_level,opportunity_access_level,case_access_level,contact_access_level,last_modified_date,last_modified_by_id,system_modstamp,developer_name +src02.crm_territory2_all +org02.crm_territory2_all + + +truncate_src_table:src02.crm_territory2_all diff --git a/s3/data/crm/settings/CRM_Territory2_ex.sql b/s3/data/crm/settings/CRM_Territory2_ex.sql new file mode 100644 index 00000000..a30ccd91 --- /dev/null +++ b/s3/data/crm/settings/CRM_Territory2_ex.sql @@ -0,0 +1,2 @@ +CALL crm_data_sync('src02.crm_territory2', 'src02.crm_territory2_all', 'system_modstamp'); +CALL crm_history('src02.crm_territory2', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Time_Off_Territory_vod__c.txt b/s3/data/crm/settings/CRM_Time_Off_Territory_vod__c.txt new file mode 100644 index 00000000..e2b1b9b6 --- /dev/null +++ b/s3/data/crm/settings/CRM_Time_Off_Territory_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +25 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Reason_vod__c,Territory_vod__c,Date_vod__c,Status_vod__c,Time_vod__c,Hours_vod__c,Mobile_ID_vod__c,Hours_off_vod__c,Start_Time_vod__c,MSJ_Day__c,MSJ_Comment__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,reason_vod__c,territory_vod__c,date_vod__c,status_vod__c,time_vod__c,hours_vod__c,mobile_id_vod__c,hours_off_vod__c,start_time_vod__c,msj_day__c,msj_comment__c +src02.crm_time_off_territory_vod__c +org02.crm_time_off_territory_vod__c + + diff --git a/s3/data/crm/settings/CRM_User.txt b/s3/data/crm/settings/CRM_User.txt new file mode 100644 index 00000000..317a5e14 --- /dev/null +++ b/s3/data/crm/settings/CRM_User.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +197 +Id,Username,LastName,FirstName,Name,CompanyName,Division,Department,Title,Street,City,State,PostalCode,Country,Latitude,Longitude,GeocodeAccuracy,Address,Email,EmailPreferencesAutoBcc,EmailPreferencesAutoBccStayInTouch,EmailPreferencesStayInTouchReminder,SenderEmail,SenderName,Signature,StayInTouchSubject,StayInTouchSignature,StayInTouchNote,Phone,Fax,MobilePhone,Alias,CommunityNickname,BadgeText,IsActive,TimeZoneSidKey,UserRoleId,LocaleSidKey,ReceivesInfoEmails,ReceivesAdminInfoEmails,EmailEncodingKey,ProfileId,UserType,LanguageLocaleKey,EmployeeNumber,DelegatedApproverId,ManagerId,LastLoginDate,LastPasswordChangeDate,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,NumberOfFailedLogins,OfflineTrialExpirationDate,OfflinePdaTrialExpirationDate,UserPermissionsMarketingUser,UserPermissionsOfflineUser,UserPermissionsWirelessUser,UserPermissionsAvantgoUser,UserPermissionsCallCenterAutoLogin,UserPermissionsSFContentUser,UserPermissionsInteractionUser,UserPermissionsSupportUser,UserPermissionsChatterAnswersUser,ForecastEnabled,UserPreferencesActivityRemindersPopup,UserPreferencesEventRemindersCheckboxDefault,UserPreferencesTaskRemindersCheckboxDefault,UserPreferencesReminderSoundOff,UserPreferencesDisableAllFeedsEmail,UserPreferencesApexPagesDeveloperMode,UserPreferencesReceiveNoNotificationsAsApprover,UserPreferencesReceiveNotificationsAsDelegatedApprover,UserPreferencesHideCSNGetChatterMobileTask,UserPreferencesHideCSNDesktopTask,UserPreferencesHideChatterOnboardingSplash,UserPreferencesHideSecondChatterOnboardingSplash,UserPreferencesShowTitleToExternalUsers,UserPreferencesShowManagerToExternalUsers,UserPreferencesShowEmailToExternalUsers,UserPreferencesShowWorkPhoneToExternalUsers,UserPreferencesShowMobilePhoneToExternalUsers,UserPreferencesShowFaxToExternalUsers,UserPreferencesShowStreetAddressToExternalUsers,UserPreferencesShowCityToExternalUsers,UserPreferencesShowStateToExternalUsers,UserPreferencesShowPostalCodeToExternalUsers,UserPreferencesShowCountryToExternalUsers,UserPreferencesShowProfilePicToGuestUsers,UserPreferencesShowTitleToGuestUsers,UserPreferencesShowCityToGuestUsers,UserPreferencesShowStateToGuestUsers,UserPreferencesShowPostalCodeToGuestUsers,UserPreferencesShowCountryToGuestUsers,UserPreferencesHideInvoicesRedirectConfirmation,UserPreferencesHideStatementsRedirectConfirmation,UserPreferencesPathAssistantCollapsed,UserPreferencesCacheDiagnostics,UserPreferencesShowEmailToGuestUsers,UserPreferencesShowManagerToGuestUsers,UserPreferencesShowWorkPhoneToGuestUsers,UserPreferencesShowMobilePhoneToGuestUsers,UserPreferencesShowFaxToGuestUsers,UserPreferencesShowStreetAddressToGuestUsers,UserPreferencesLightningExperiencePreferred,UserPreferencesPreviewLightning,UserPreferencesHideEndUserOnboardingAssistantModal,UserPreferencesHideLightningMigrationModal,UserPreferencesHideSfxWelcomeMat,UserPreferencesHideBiggerPhotoCallout,UserPreferencesGlobalNavBarWTShown,UserPreferencesGlobalNavGridMenuWTShown,UserPreferencesCreateLEXAppsWTShown,UserPreferencesFavoritesWTShown,UserPreferencesRecordHomeSectionCollapseWTShown,UserPreferencesRecordHomeReservedWTShown,UserPreferencesFavoritesShowTopFavorites,UserPreferencesExcludeMailAppAttachments,UserPreferencesSuppressTaskSFXReminders,UserPreferencesSuppressEventSFXReminders,UserPreferencesPreviewCustomTheme,UserPreferencesHasCelebrationBadge,UserPreferencesUserDebugModePref,UserPreferencesSRHOverrideActivities,UserPreferencesNewLightningReportRunPageEnabled,UserPreferencesReverseOpenActivitiesView,UserPreferencesNativeEmailClient,UserPreferencesHideBrowseProductRedirectConfirmation,UserPreferencesHideOnlineSalesAppWelcomeMat,ContactId,AccountId,CallCenterId,Extension,FederationIdentifier,AboutMe,FullPhotoUrl,SmallPhotoUrl,IsExtIndicatorVisible,OutOfOfficeMessage,MediumPhotoUrl,DigestFrequency,DefaultGroupNotificationFrequency,LastViewedDate,LastReferencedDate,BannerPhotoUrl,SmallBannerPhotoUrl,MediumBannerPhotoUrl,IsProfilePhotoActive,IndividualId,Last_Mobile_Connect_vod__c,Last_Tablet_Connect_vod__c,Last_Mobile_Connect_Version_vod__c,Last_Tablet_Connect_Version_vod__c,Last_Mobile_Sync_vod__c,Last_Tablet_Sync_vod__c,RaiseLoggingLevel_vod__c,SendDetailedLog_vod__c,Last_Blackberry_Connect_vod__c,Last_Blackberry_Connect_Version_vod__c,Last_Blackberry_Sync_vod__c,Force_Full_Refresh_vod__c,Override_SystemModstamp_Timestamp_vod__c,Facetime_Email_vod__c,Facetime_Phone_vod__c,Product_Expertise_vod__c,Available_vod__c,Available_Last_Update_vod__c,Last_iPad_Connect_Version_vod__c,Last_iPad_Connect_vod__c,Last_iPad_Sync_vod__c,Inventory_Order_Allocation_Group_vod__c,Concur_User_Id_vod__c,Last_iPad_iOS_Version_vod__c,Approved_Email_Admin_vod__c,Last_WinModern_Connect_Version_vod__c,Last_WinModern_Connect_vod__c,Last_WinModern_Sync_vod__c,Primary_Territory_vod__c,Analytics_Admin_vod__c,Content_Admin_vod__c,Last_WinModern_Windows_Version_vod__c,Upload_VTrans_vod__c,Sync_Frequency_vjh__c,Clear_Client_Sync_Errors_vod__c,Remote_Meeting_Host_Id_vod__c,Remote_Meeting_Host_Token_vod__c,Last_iPhone_Connect_Version_vod__c,Last_iPhone_Connect_vod__c,Last_iPhone_Sync_vod__c,Last_iPhone_iOS_Version_vod__c,Remote_Meeting_Start_From_CRM_Online_vod__c,Country_Code_vod__c,User_Type_vod__c,Engage_Group_Provisioning_Status_vod__c,Engage_Group_Request_vod__c,Engage_Group_vod__c,Last_CRMDesktop_Mac_Sync_vod__c,Last_CRMDesktop_Mac_Version_vod__c,Last_CRMDesktop_Windows_Sync_vod__c,Last_CRMDesktop_Windows_Version_vod__c,MSJ_Test_User__c +id,username,last_name,first_name,name,company_name,division,department,title,street,city,state,postal_code,country,latitude,longitude,geocode_accuracy,address,email,email_preferences_auto_bcc,email_preferences_auto_bcc_stay_in_touch,email_preferences_stay_in_touch_reminder,sender_email,sender_name,signature,stay_in_touch_subject,stay_in_touch_signature,stay_in_touch_note,phone,fax,mobile_phone,alias,community_nickname,badge_text,is_active,time_zone_sid_key,user_role_id,locale_sid_key,receives_info_emails,receives_admin_info_emails,email_encoding_key,profile_id,user_type,language_locale_key,employee_number,delegated_approver_id,manager_id,last_login_date,last_password_change_date,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,number_of_failed_logins,offline_trial_expiration_date,offline_pda_trial_expiration_date,user_permissions_marketing_user,user_permissions_offline_user,user_permissions_wireless_user,user_permissions_avantgo_user,user_permissions_call_center_auto_login,user_permissions_sfcontent_user,user_permissions_interaction_user,user_permissions_support_user,user_permissions_chatter_answers_user,forecast_enabled,user_preferences_activity_reminders_popup,user_preferences_event_reminders_checkbox_default,user_preferences_task_reminders_checkbox_default,user_preferences_reminder_sound_off,user_preferences_disable_all_feeds_email,user_preferences_apex_pages_developer_mode,user_preferences_receive_no_notifications_as_approver,user_preferences_receive_notifications_as_delegated_approver,user_preferences_hide_csnget_chatter_mobile_task,user_preferences_hide_csndesktop_task,user_preferences_hide_chatter_onboarding_splash,user_preferences_hide_second_chatter_onboarding_splash,user_preferences_show_title_to_external_users,user_preferences_show_manager_to_external_users,user_preferences_show_email_to_external_users,user_preferences_show_work_phone_to_external_users,user_preferences_show_mobile_phone_to_external_users,user_preferences_show_fax_to_external_users,user_preferences_show_street_address_to_external_users,user_preferences_show_city_to_external_users,user_preferences_show_state_to_external_users,user_preferences_show_postal_code_to_external_users,user_preferences_show_country_to_external_users,user_preferences_show_profile_pic_to_guest_users,user_preferences_show_title_to_guest_users,user_preferences_show_city_to_guest_users,user_preferences_show_state_to_guest_users,user_preferences_show_postal_code_to_guest_users,user_preferences_show_country_to_guest_users,user_preferences_hide_invoices_redirect_confirmation,user_preferences_hide_statements_redirect_confirmation,user_preferences_path_assistant_collapsed,user_preferences_cache_diagnostics,user_preferences_show_email_to_guest_users,user_preferences_show_manager_to_guest_users,user_preferences_show_work_phone_to_guest_users,user_preferences_show_mobile_phone_to_guest_users,user_preferences_show_fax_to_guest_users,user_preferences_show_street_address_to_guest_users,user_preferences_lightning_experience_preferred,user_preferences_preview_lightning,user_preferences_hide_end_user_onboarding_assistant_modal,user_preferences_hide_lightning_migration_modal,user_preferences_hide_sfx_welcome_mat,user_preferences_hide_bigger_photo_callout,user_preferences_global_nav_bar_wtshown,user_preferences_global_nav_grid_menu_wtshown,user_preferences_create_lexapps_wtshown,user_preferences_favorites_wtshown,user_preferences_record_home_section_collapse_wtshown,user_preferences_record_home_reserved_wtshown,user_preferences_favorites_show_top_favorites,user_preferences_exclude_mail_app_attachments,user_preferences_suppress_task_sfxreminders,user_preferences_suppress_event_sfxreminders,user_preferences_preview_custom_theme,user_preferences_has_celebration_badge,user_preferences_user_debug_mode_pref,user_preferences_srhoverride_activities,user_preferences_new_lightning_report_run_page_enabled,user_preferences_reverse_open_activities_view,user_preferences_native_email_client,user_preferences_hide_browse_product_redirect_confirmation,user_preferences_hide_online_sales_app_welcome_mat,contact_id,account_id,call_center_id,extension,federation_identifier,about_me,full_photo_url,small_photo_url,is_ext_indicator_visible,out_of_office_message,medium_photo_url,digest_frequency,default_group_notification_frequency,last_viewed_date,last_referenced_date,banner_photo_url,small_banner_photo_url,medium_banner_photo_url,is_profile_photo_active,individual_id,last_mobile_connect_vod__c,last_tablet_connect_vod__c,last_mobile_connect_version_vod__c,last_tablet_connect_version_vod__c,last_mobile_sync_vod__c,last_tablet_sync_vod__c,raise_logging_level_vod__c,send_detailed_log_vod__c,last_blackberry_connect_vod__c,last_blackberry_connect_version_vod__c,last_blackberry_sync_vod__c,force_full_refresh_vod__c,override_system_modstamp_timestamp_vod__c,facetime_email_vod__c,facetime_phone_vod__c,product_expertise_vod__c,available_vod__c,available_last_update_vod__c,last_i_pad_connect_version_vod__c,last_i_pad_connect_vod__c,last_i_pad_sync_vod__c,inventory_order_allocation_group_vod__c,concur_user_id_vod__c,last_i_pad_i_os_version_vod__c,approved_email_admin_vod__c,last_win_modern_connect_version_vod__c,last_win_modern_connect_vod__c,last_win_modern_sync_vod__c,primary_territory_vod__c,analytics_admin_vod__c,content_admin_vod__c,last_win_modern_windows_version_vod__c,upload_vtrans_vod__c,sync_frequency_vjh__c,clear_client_sync_errors_vod__c,remote_meeting_host_id_vod__c,remote_meeting_host_token_vod__c,last_i_phone_connect_version_vod__c,last_i_phone_connect_vod__c,last_i_phone_sync_vod__c,last_i_phone_i_os_version_vod__c,remote_meeting_start_from_crm_online_vod__c,country_code_vod__c,user_type_vod__c,engage_group_provisioning_status_vod__c,engage_group_request_vod__c,engage_group_vod__c,last_crmdesktop_mac_sync_vod__c,last_crmdesktop_mac_version_vod__c,last_crmdesktop_windows_sync_vod__c,last_crmdesktop_windows_version_vod__c,msj_test_user__c +src02.crm_user +org02.crm_user + + diff --git a/s3/data/crm/settings/CRM_UserRole.txt b/s3/data/crm/settings/CRM_UserRole.txt new file mode 100644 index 00000000..4b10b6c2 --- /dev/null +++ b/s3/data/crm/settings/CRM_UserRole.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +16 +Id,Name,ParentRoleId,RollupDescription,OpportunityAccessForAccountOwner,CaseAccessForAccountOwner,ContactAccessForAccountOwner,ForecastUserId,MayForecastManagerShare,LastModifiedDate,LastModifiedById,SystemModstamp,DeveloperName,PortalAccountId,PortalType,PortalAccountOwnerId +id,name,parent_role_id,rollup_description,opportunity_access_for_account_owner,case_access_for_account_owner,contact_access_for_account_owner,forecast_user_id,may_forecast_manager_share,last_modified_date,last_modified_by_id,system_modstamp,developer_name,portal_account_id,portal_type,portal_account_owner_id +src02.crm_user_role +org02.crm_user_role + + diff --git a/s3/data/crm/settings/CRM_UserTerritory2Association.txt b/s3/data/crm/settings/CRM_UserTerritory2Association.txt new file mode 100644 index 00000000..039757b9 --- /dev/null +++ b/s3/data/crm/settings/CRM_UserTerritory2Association.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +8 +Id,UserId,Territory2Id,IsActive,RoleInTerritory2,LastModifiedDate,LastModifiedById,SystemModstamp +id,user_id,territory2_id,is_active,role_in_territory2,last_modified_date,last_modified_by_id,system_modstamp +src02.crm_user_territory2_association +org02.crm_user_territory2_association +CRM_UserTerritory2Association_ex.sql + diff --git a/s3/data/crm/settings/CRM_UserTerritory2Association_ALL.txt b/s3/data/crm/settings/CRM_UserTerritory2Association_ALL.txt new file mode 100644 index 00000000..4617829d --- /dev/null +++ b/s3/data/crm/settings/CRM_UserTerritory2Association_ALL.txt @@ -0,0 +1,14 @@ +CRM +, +utf-8 +" +CRLF +1 +8 +Id,UserId,Territory2Id,IsActive,RoleInTerritory2,LastModifiedDate,LastModifiedById,SystemModstamp +id,user_id,territory2_id,is_active,role_in_territory2,last_modified_date,last_modified_by_id,system_modstamp +src02.crm_user_territory2_association_all +org02.crm_user_territory2_association_all + + +truncate_src_table:src02.crm_user_territory2_association_all diff --git a/s3/data/crm/settings/CRM_UserTerritory2Association_ex.sql b/s3/data/crm/settings/CRM_UserTerritory2Association_ex.sql new file mode 100644 index 00000000..6a9aaece --- /dev/null +++ b/s3/data/crm/settings/CRM_UserTerritory2Association_ex.sql @@ -0,0 +1,2 @@ +CALL crm_data_sync('src02.crm_user_territory2_association', 'src02.crm_user_territory2_association_all', 'system_modstamp'); +CALL crm_history('src02.crm_user_territory2_association', 'system_modstamp'); diff --git a/s3/data/crm/settings/configmap.config b/s3/data/crm/settings/configmap.config new file mode 100644 index 00000000..89993b8b --- /dev/null +++ b/s3/data/crm/settings/configmap.config @@ -0,0 +1,58 @@ +/* 【CRMデータ 差分連携】 */ +CRM_Clm_Presentation_vod__c_[0-9]{14}\.(CSV|csv) CRM_Clm_Presentation_vod__c.txt +CRM_Clm_Presentation_Slide_vod__c_[0-9]{14}\.(CSV|csv) CRM_Clm_Presentation_Slide_vod__c.txt +CRM_Medical_Insight_vod__c_[0-9]{14}\.(CSV|csv) CRM_Medical_Insight_vod__c.txt +CRM_MSJ_MR_Weekly_Report__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_MR_Weekly_Report__c.txt +CRM_Account_Territory_Loader_vod__c_[0-9]{14}\.(CSV|csv) CRM_Account_Territory_Loader_vod__c.txt +CRM_Event_Attendee_vod__c_[0-9]{14}\.(CSV|csv) CRM_Event_Attendee_vod__c.txt +CRM_ObjectTerritory2Association_[0-9]{14}\.(CSV|csv) CRM_ObjectTerritory2Association.txt +CRM_Key_Message_vod__c_[0-9]{14}\.(CSV|csv) CRM_Key_Message_vod__c.txt +CRM_Group_[0-9]{14}\.(CSV|csv) CRM_Group.txt +CRM_Medical_Event_vod__c_[0-9]{14}\.(CSV|csv) CRM_Medical_Event_vod__c.txt +CRM_MSJ_Medical_Event_Evaluation__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Medical_Event_Evaluation__c.txt +CRM_Coaching_Report_vod__c_[0-9]{14}\.(CSV|csv) CRM_Coaching_Report_vod__c.txt +CRM_Call2_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call2_vod__c.txt +CRM_Call2_Detail_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call2_Detail_vod__c.txt +CRM_Call2_Key_Message_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call2_Key_Message_vod__c.txt +CRM_Call_Clickstream_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call_Clickstream_vod__c.txt +CRM_Call2_Discussion_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call2_Discussion_vod__c.txt +CRM_Time_Off_Territory_vod__c_[0-9]{14}\.(CSV|csv) CRM_Time_Off_Territory_vod__c.txt +CRM_Dynamic_Attribute_vod__c_[0-9]{14}\.(CSV|csv) CRM_Dynamic_Attribute_vod__c.txt +CRM_Dynamic_Attribute_Configuration_vod__c_[0-9]{14}\.(CSV|csv) CRM_Dynamic_Attribute_Configuration_vod__c.txt +CRM_Territory2_[0-9]{14}\.(CSV|csv) CRM_Territory2.txt +CRM_Profile_[0-9]{14}\.(CSV|csv) CRM_Profile.txt +CRM_My_Setup_Products_vod__c_[0-9]{14}\.(CSV|csv) CRM_My_Setup_Products_vod__c.txt +CRM_Multichannel_Activity_vod__c_[0-9]{14}\.(CSV|csv) CRM_Multichannel_Activity_vod__c.txt +CRM_Multichannel_Activity_Line_vod__c_[0-9]{14}\.(CSV|csv) CRM_Multichannel_Activity_Line_vod__c.txt +CRM_Multichannel_Consent_vod__c_[0-9]{14}\.(CSV|csv) CRM_Multichannel_Consent_vod__c.txt +CRM_Medical_Inquiry_vod__c_[0-9]{14}\.(CSV|csv) CRM_Medical_Inquiry_vod__c.txt +CRM_Email_Activity_vod__c_[0-9]{14}\.(CSV|csv) CRM_Email_Activity_vod__c.txt +CRM_User_[0-9]{14}\.(CSV|csv) CRM_User.txt +CRM_UserTerritory2Association_[0-9]{14}\.(CSV|csv) CRM_UserTerritory2Association.txt +CRM_Remote_Meeting_vod__c_[0-9]{14}\.(CSV|csv) CRM_Remote_Meeting_vod__c.txt +CRM_RecordType_[0-9]{14}\.(CSV|csv) CRM_RecordType.txt +CRM_UserRole_[0-9]{14}\.(CSV|csv) CRM_UserRole.txt +CRM_Account_[0-9]{14}\.(CSV|csv) CRM_Account.txt +CRM_AccountShare_[0-9]{14}\.(CSV|csv) CRM_AccountShare.txt +CRM_Contact_[0-9]{14}\.(CSV|csv) CRM_Contact.txt +CRM_Consent_Type_vod__c_[0-9]{14}\.(CSV|csv) CRM_Consent_Type_vod__c.txt +CRM_Consent_Header_vod__c_[0-9]{14}\.(CSV|csv) CRM_Consent_Header_vod__c.txt +CRM_Consent_Line_vod__c_[0-9]{14}\.(CSV|csv) CRM_Consent_Line_vod__c.txt +CRM_MSJ_Inquiry_Assignment__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Inquiry_Assignment__c.txt +CRM_Approved_Document_vod__c_[0-9]{14}\.(CSV|csv) CRM_Approved_Document_vod__c.txt +CRM_Child_Account_vod__c_[0-9]{14}\.(CSV|csv) CRM_Child_Account_vod__c.txt +CRM_MSJ_Hospital_Medical_Regimen__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Hospital_Medical_Regimen__c.txt +CRM_MSJ_Medical_Regimen__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Medical_Regimen__c.txt +CRM_MSJ_Patient__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Patient__c.txt +CRM_Product_vod__c_[0-9]{14}\.(CSV|csv) CRM_Product_vod__c.txt +CRM_Product_Group_vod__c_[0-9]{14}\.(CSV|csv) CRM_Product_Group_vod__c.txt +CRM_Product_Metrics_vod__c_[0-9]{14}\.(CSV|csv) CRM_Product_Metrics_vod__c.txt +CRM_Survey_vod__c_[0-9]{14}\.(CSV|csv) CRM_Survey_vod__c.txt +CRM_Survey_Target_vod__c_[0-9]{14}\.(CSV|csv) CRM_Survey_Target_vod__c.txt +CRM_Survey_Question_vod__c_[0-9]{14}\.(CSV|csv) CRM_Survey_Question_vod__c.txt +CRM_Question_Response_vod__c_[0-9]{14}\.(CSV|csv) CRM_Question_Response_vod__c.txt +CRM_Sent_Fragment_vod__c_[0-9]{14}\.(CSV|csv) CRM_Sent_Fragment_vod__c.txt +CRM_Sent_Email_vod__c_[0-9]{14}\.(CSV|csv) CRM_Sent_Email_vod__c.txt +/* 【CRMデータ 全件連携】 */ +CRM_Territory2_ALL_[0-9]{14}\.(CSV|csv) CRM_Territory2_ALL.txt +CRM_UserTerritory2Association_ALL_[0-9]{14}\.(CSV|csv) CRM_UserTerritory2Association_ALL.txt From 70f03b4a6f7f02e6b34d7035debaca99c05161be Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 17:21:19 +0900 Subject: [PATCH 22/22] =?UTF-8?q?feat:=E3=80=8C"=E3=80=8D=E3=81=8C?= =?UTF-8?q?=E5=8F=96=E3=82=8A=E8=BE=BC=E3=82=81=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/dataimport/dataimport/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ecs/dataimport/dataimport/main.py b/ecs/dataimport/dataimport/main.py index 05e5c353..d86ee84e 100644 --- a/ecs/dataimport/dataimport/main.py +++ b/ecs/dataimport/dataimport/main.py @@ -145,6 +145,7 @@ def main(bucket_name, target_data_source, target_file_name, settings_key, db_inf if len(line[i]) > 0: # 0桁より大きい場合 replace_line = line[i].replace('\\', '\\\\') + replace_line = line[i].replace('"', '\\"') sql = f'{sql} "{replace_line}",' else: # 上記以外の場合