This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <target name="bulkRetrieveFolders"> | |
| <!-- bulkRetrieveFolders populated by script --> | |
| </target> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <target name="bulkRetrieveFolders"> | |
| <sf:bulkRetrieve username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" metadataType="Report" containingFolder="Call_Center" retrieveTarget="/home/dpeter/sf/metadata"/> | |
| <sf:bulkRetrieve username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" metadataType="Report" containingFolder="Sales_Public" retrieveTarget="/home/dpeter/sf/metadata"/> | |
| <sf:bulkRetrieve username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" metadataType="Dashboard" containingFolder="Finance" retrieveTarget="/home/dpeter/sf/metadata"/> | |
| <sf:bulkRetrieve username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" metadataType="Dashboard" containingFolder="Operations_Public" retrieveTarget="/home/dpeter/sf/metadata"/> | |
| <sf:bulkRetrieve username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" metadataType="EmailTemplate" containingFolder="Operations_Auto_Response_Templates" retrieveTarget | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function getReportFolders($access_token) { | |
| $arrReturn = array(); | |
| $query = "SELECT Id, DeveloperName FROM Folder WHERE Type='Report' AND DeveloperName != ''"; | |
| $url = "https://ssl.salesforce.com/services/data/v20.0/query?q=" . urlencode($query); | |
| $curl = curl_init($url); | |
| curl_setopt($curl, CURLOPT_HEADER, false); | |
| curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($curl, CURLOPT_HTTPHEADER, array("Authorization: OAuth $access_token")); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?xml version="1.0" encoding="UTF-8"?> | |
| <Package xmlns="http://soap.sforce.com/2006/04/metadata"> | |
| <types> | |
| <members>SafariLetterhead</members> | |
| <members>…</members> | |
| <members>blank_letterhead</members> | |
| <name>Letterhead</name> | |
| </types> | |
| <types> | |
| <members>OperationsI</members> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ************************************************************ | |
| FileName: caseSharingRules/Case.sharingRules | |
| FullName/Id: OperationsI/01y00000000MMMMAAU | |
| Manageable State: null | |
| Namespace Prefix: null | |
| Created By (Name/Id): John Doe/0050000000NNNNQAAU | |
| Last Modified By (Name/Id): John Doe/0050000000NNNNQAAU | |
| ************************************************************ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $arrLetterhead = parseLog("/home/dpeter/sf/lists/Letterhead.log"); | |
| $arrAccountCriteriaBasedSharingRule = parseLog("/home/dpeter/sf/lists/AccountCriteriaBasedSharingRule.log"); | |
| $arrAccountOwnerSharingRule = parseLog("/home/dpeter/sf/lists/AccountOwnerSharingRule.log"); | |
| $arrAccountSharingRules = parseLog("/home/dpeter/sf/lists/AccountSharingRules.log"); | |
| $arrCampaignCriteriaBasedSharingRule = parseLog("/home/dpeter/sf/lists/CampaignCriteriaBasedSharingRule.log"); | |
| $arrCampaignOwnerSharingRule = parseLog("/home/dpeter/sf/lists/CampaignOwnerSharingRule.log"); | |
| $arrCampaignSharingRules = parseLog("/home/dpeter/sf/lists/CampaignSharingRules.log"); | |
| $arrCaseCriteriaBasedSharingRule = parseLog("/home/dpeter/sf/lists/CaseCriteriaBasedSharingRule.log"); | |
| $arrCaseOwnerSharingRule = parseLog("/home/dpeter/sf/lists/CaseOwnerSharingRule.log"); | |
| $arrCaseSharingRules = parseLog("/home/dpeter/sf/lists/CaseSharingRules.log"); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?xml version="1.0" encoding="UTF-8"?> | |
| <Package xmlns="http://soap.sforce.com/2006/04/metadata"> | |
| <types> | |
| <members>*</members> | |
| <members>Account</members> | |
| <members>…</members> | |
| <members>tempSA__c</members> | |
| <name>CustomObject</name> | |
| </types> | |
| <types> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $arrCustomField = filerToStandardObjects(parseLog("/home/dpeter/sf/lists/CustomField.log")); | |
| $arrBusinessProcess = parseLog("/home/dpeter/sf/lists/BusinessProcess.log"); | |
| $arrRecordType = parseLog("/home/dpeter/sf/lists/RecordType.log"); | |
| $arrWebLink = parseLog("/home/dpeter/sf/lists/WebLink.log"); | |
| $arrValidationRule = parseLog("/home/dpeter/sf/lists/ValidationRule.log"); | |
| $arrNamedFilter = parseLog("/home/dpeter/sf/lists/NamedFilter.log"); | |
| $arrSharingReason = parseLog("/home/dpeter/sf/lists/SharingReason.log"); | |
| $arrListView = parseLog("/home/dpeter/sf/lists/ListView.log"); | |
| $arrFieldSet = parseLog("/home/dpeter/sf/lists/FieldSet.log"); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function getObjectLists($access_token) { | |
| //this function returns an assoc array. The value "standard" is an array of the std objects, "custom" is an array of the custom objects | |
| $arrReturn = array(); | |
| $arrReturn['standard'] = array(); | |
| $arrReturn['custom'] = array(); | |
| $url = "https://ssl.salesforce.com/services/data/v24.0/sobjects/"; | |
| $curl = curl_init($url); | |
| curl_setopt($curl, CURLOPT_HEADER, false); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ************************************************************ | |
| XMLName: CustomLabels | |
| DirName: labels | |
| Suffix: labels | |
| HasMetaFile: false | |
| InFolder: false | |
| ChildObjects: CustomLabel,************************************************************ | |
| ************************************************************ | |
| XMLName: StaticResource | |
| DirName: staticresources |