| | |
| | | //String soql = 'SELECT id,Doctor_Division1__c,Doctor_Division1_Encrypted__c,Name,Name_Encrypted__c,Type__c,Type_Encrypted__c,AWS_Data_Id__c,Contact__c, Contact__r.Doctor_Division1_Encrypted__c,Contact__r.LastName_Encrypted__c, Contact__r.Type_Encrypted__c FROM Agency_Contact__c WHERE id=\'a2R10000001cfatEAA\' And AWS_Data_Id__c =\'\' And Contact__c != null'; |
| | | String soql = 'SELECT id,Doctor_Division1__c,Doctor_Division1_Encrypted__c,Name,Name_Encrypted__c,Type__c,Type_Encrypted__c,AWS_Data_Id__c,Contact__c, Contact__r.Doctor_Division1_Encrypted__c,Contact__r.LastName_Encrypted__c, Contact__r.Type_Encrypted__c FROM Agency_Contact__c WHERE AWS_Data_Id__c =\'Test AWS\''; |
| | | SyncAccountContactToAWS contactBatch = new SyncAccountContactToAWS(soql); |
| | | SyncAccountContactToAWS contactBatchTest = new SyncAccountContactToAWS(); |
| | | Id execBTId = Database.executeBatch(contactBatch,1); |
| | | }catch(Exception e){ |
| | | system.debug('Exception from sync aws batch:'+ e.getMessage()); |
| | | } |
| | | try{ |
| | | SyncAccountContactToAWS.assignOnceOneMinuteLater(); |
| | | SyncAccountContactToAWS.assignOnceOneMinuteLater(new List<Agency_Contact__c>()); |
| | | }catch(Exception e){ |
| | | system.debug('Exception from sync aws scheduler:'+ e.getMessage()); |
| | | } |