forked from Innovate-Inc/CRS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjob_GeocodeSalesforceData_BiMonth_DEV.bat
36 lines (24 loc) · 1.26 KB
/
job_GeocodeSalesforceData_BiMonth_DEV.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
REM Use series of python scripts to geocode new Salesforce Records added to the
REM Salesforce_Data SQL Server database
REM Created by Jenny Holder, Innovate! Inc., [email protected]
REM Updated August 2017
ECHO Start time: %date% %time%
ECHO Delete old records first...
REM US Ops ALL Data Bi-Monthly Run
sqlcmd -U jenny.holder -P crs4fun -S 10.15.230.244\dev -i D:\Salesforce_Data\Scripts\crsTruncateTables_USOps.sql
ECHO Truncated GeocodeErrors, DonationsFC, RiceBowlsFC, ProjectsFC, SenateFC/HouseFC
ECHO Start time: %date% %time%
ECHO Geocoding Institutions...
C:\Python27\ArcGIS10.5\python.exe D:\Salesforce_Data\Scripts\crsGeocodeInstitutions-Dev.py
ECHO Start time: %date% %time%
ECHO Geocoding Individuals...
C:\Python27\ArcGIS10.5\python.exe D:\Salesforce_Data\Scripts\crsGeocodeIndividuals-Dev.py
ECHO Start time: %date% %time%
sqlcmd -U jenny.holder -P crs4fun -S 10.15.230.244\dev -i D:\Salesforce_Data\Scripts\updateExistingRecords.sql
ECHO Updated CBI/PAC in existing records
ECHO Start time: %date% %time%
ECHO Geocoding Donations...
C:\Python27\ArcGIS10.5\python.exe D:\Salesforce_Data\Scripts\crsGeocodeDonations.py
ECHO Update Congress...
C:\Python27\ArcGIS10.5\python.exe D:\Salesforce_Data\Scripts\crsGeocodeCongress.py
ECHO End time: %date% %time%