From 14bc0f6dcaee73f3474dee210cedb7d22bc23233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rene=20Ka=C3=9Feb=C3=B6hmer?= Date: Wed, 7 May 2025 13:36:27 +0200 Subject: [PATCH] associatedlocation test fix --- .gitignore | 5 ++++- .../AssociatedLocation_test.csv_test | 7 +++++++ .../11_upsert_associated_location/export.json | 12 +++++++----- 3 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 prepared_steps/11_upsert_associated_location/AssociatedLocation_test.csv_test diff --git a/.gitignore b/.gitignore index f0a7c57..7fc7838 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,7 @@ SCPriceList__c.csv SCPriceListItem__c.csv SCResourceAssignment__c.csv ContractTemplates.csv -ServiceContract.csv \ No newline at end of file +ServiceContract.csv +SCContract__c.csv +AssociatedLocation_beforetransform.csv +AssociatedLocation.csv \ No newline at end of file diff --git a/prepared_steps/11_upsert_associated_location/AssociatedLocation_test.csv_test b/prepared_steps/11_upsert_associated_location/AssociatedLocation_test.csv_test new file mode 100644 index 0000000..2b15c5e --- /dev/null +++ b/prepared_steps/11_upsert_associated_location/AssociatedLocation_test.csv_test @@ -0,0 +1,7 @@ +Type,ActiveFrom,ActiveTo,ParentRecordId,LocationId +Installer (installation),2017-12-01,,0019Z00000fmCAYQA2,1319Z000000jyzJQAQ +Owner,2017-12-03,,001KN000003VYDfYAO,1319Z000000jyzJQAQ +Installer (installation),2017-12-01,,0019Z00000fmCAYQA2,1319Z000000jyzKQAQ +Owner,2017-12-03,,001KN000003VYDfYAO,1319Z000000jyzKQAQ +Installer (installation),2017-12-03,,0019Z00000fmCAYQA2,1319Z000000jyzLQAQ +Owner,2017-12-03,,001KN000003VYDfYAO,1319Z000000jyzLQAQ diff --git a/prepared_steps/11_upsert_associated_location/export.json b/prepared_steps/11_upsert_associated_location/export.json index 620fec6..1de24f9 100644 --- a/prepared_steps/11_upsert_associated_location/export.json +++ b/prepared_steps/11_upsert_associated_location/export.json @@ -4,16 +4,18 @@ "objects": [ { "query": "SELECT Id FROM Location WHERE ParentLocationId != null AND ParentLocation.VisitorAddress.CountryCode = 'NL'", - "operation": "Insert", + "operation": "Readonly", + "externalId": "Id", "master": false }, - { - "query": "SELECT Id FROM Account WHERE BillingCountry__c != 'NL'", - "operation": "Insert", + { + "query": "SELECT Id FROM Account WHERE BillingCountry__c = 'NL'", + "operation": "Readonly", + "externalId": "Id", "master": false }, { - "query": "SELECT Type,ActiveFrom,ActiveTo,ParentRecordId$Account, LocationId FROM AssociatedLocation", + "query": "SELECT Type,ActiveFrom,ActiveTo,ParentRecordId, LocationId FROM AssociatedLocation", "operation": "Insert", "useSourceCSVFile": true, "master": true,