From febcccfd1782d281fff64676d8b7a6abb51d95b3 Mon Sep 17 00:00:00 2001 From: Patrick Connelly Date: Thu, 6 Aug 2020 17:10:15 -0400 Subject: [PATCH] Adding support for queues --- ant/1.1/properties/sfdc.metadata.properties | 8 ++++++-- ant/1.1/util/sfdc-util.xml | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ant/1.1/properties/sfdc.metadata.properties b/ant/1.1/properties/sfdc.metadata.properties index 03264f9..ac71219 100644 --- a/ant/1.1/properties/sfdc.metadata.properties +++ b/ant/1.1/properties/sfdc.metadata.properties @@ -31,7 +31,7 @@ # properties defined below... # sf.dirs.folderBased = dashboards documents email reports -sf.dirs.nonFolderBased = assignmentRules escalationRules applications classes components datacategorygroups entitlementTemplates entitlementProcesses milestoneTypes homePageComponents homePageLayouts labels layouts letterhead objects objectTranslations pages portals profiles remoteSiteSettings reportTypes scontrols sites staticresources tabs triggers weblinks workflows permissionsets flows flowDefinitions callCenters globalPicklists globalValueSets globalValueSetTranslations standardValueSets customMetadata liveChatAgentConfigs liveChatButtons liveChatDeployments liveChatSensitiveDataRules sharingCriteriaRule sharingOwnerRule sharingTerritoryRule sharingGuestRule +sf.dirs.nonFolderBased = assignmentRules escalationRules applications classes components datacategorygroups entitlementTemplates entitlementProcesses milestoneTypes homePageComponents homePageLayouts labels layouts letterhead objects objectTranslations pages portals profiles remoteSiteSettings reportTypes scontrols sites staticresources tabs triggers weblinks workflows permissionsets flows flowDefinitions callCenters globalPicklists globalValueSets globalValueSetTranslations standardValueSets customMetadata liveChatAgentConfigs liveChatButtons liveChatDeployments liveChatSensitiveDataRules sharingCriteriaRule sharingOwnerRule sharingTerritoryRule sharingGuestRule queues # # All the supported directories - each directory has a corresponding metadata name. # Look to the properties entitles sf.metadata.[director name] or sf.dir.[metadata name] @@ -81,6 +81,7 @@ sf.includes.liveChatAgentConfigs = *.liveChatAgentConfig sf.includes.liveChatButtons = *.liveChatButton sf.includes.liveChatDeployments = *.liveChatDeployments sf.includes.liveChatSensitiveDataRules = *.liveChatSensitiveDataRule +sf.includes.queues = *.queue sf.includes.sharingCriteriaRule = *.sharingCriteriaRule sf.includes.sharingGuestRule = *.sharingGuestRule @@ -132,6 +133,7 @@ sf.suffix.sharingCriteriaRule = .sharingCriteriaRule sf.suffix.sharingOwnerRule = .sharingOwnerRule sf.suffix.sharingTerritoryRule = .sharingTerritoryRule sf.suffix.sharingGuestRule = .sharingGuestRule +sf.suffix.queues = .queue # # When performing diffs, these are the directories @@ -220,6 +222,7 @@ sf.metadata.liveChatAgentConfigs = LiveChatAgentConfig sf.metadata.liveChatButtons = LiveChatButton sf.metadata.liveChatDeployments = LiveChatDeployment sf.metadata.liveChatSensitiveDataRules = LiveChatSensitiveDataRules +sf.metadata.queues = Queue sf.metadata.sharingCriteriaRule = SharingCriteriaRule sf.metadata.sharingOwnerRule = SharingOwnerRule @@ -277,6 +280,7 @@ sf.dir.LiveChatAgentConfigs = liveChatAgentConfig sf.dir.LiveChatButtons = liveChatButton sf.dir.LiveChatDeployments = liveChatDeployement sf.dir.LiveChatSensitiveDataRules = liveChatSensitiveDataRule +sf.dir.Queue = queues sf.dir.SharingCriteriaRule = sharingCriteriaRule sf.dir.SharingOwnerRule = sharingOwnerRule @@ -302,7 +306,7 @@ sf.members = sf.members.objects sf.members.standardValueSets # # Denotes which directories support an "all" deploy/retrive. # -sf.all = assignmentRules escalationRules classes objects components pages triggers applications labels objectTranslations weblinks sites tabs datacategorygroups entitlementTemplates entitlementProcesses milestoneTypes homePageComponents homePageLayouts layouts permissionsets portals profiles remoteSiteSettings report reportTypes scontrols staticResources translations workflows flows sharingCriteriaRule sharingOwnerRule sharingTerritoryRule sharingGuestRule sharingSets +sf.all = assignmentRules escalationRules classes objects components pages triggers applications labels objectTranslations weblinks sites tabs datacategorygroups entitlementTemplates entitlementProcesses milestoneTypes homePageComponents homePageLayouts layouts permissionsets portals profiles remoteSiteSettings report reportTypes scontrols staticResources translations workflows flows sharingCriteriaRule sharingOwnerRule sharingTerritoryRule sharingGuestRule sharingSets queues # # Additional ancillary properties diff --git a/ant/1.1/util/sfdc-util.xml b/ant/1.1/util/sfdc-util.xml index 10e9405..46d59d6 100644 --- a/ant/1.1/util/sfdc-util.xml +++ b/ant/1.1/util/sfdc-util.xml @@ -288,6 +288,7 @@ ${sfdc-util.SF-JAR.PATH} xmlMap.put("entitlementProcesses", "EntitlementProcess"); xmlMap.put("milestoneTypes", "MilestoneType"); xmlMap.put("customMetadata", "CustomMetadata"); + xmlMap.put("queues", "Queue"); Map suffixMap = new TreeMap(); // Dir name to suffix... suffixMap.put("installedPackages", "installedPackage"); @@ -361,6 +362,7 @@ ${sfdc-util.SF-JAR.PATH} suffixMap.put("standardValueSets", "standardValueSet"); suffixMap.put("entitlementProcesses", "entitlementProcess"); suffixMap.put("milestoneTypes", "milestoneType"); + suffixMap.put("queues", "queue"); Set wildcardSet = new TreeSet(); // Member name to wildcard... wildcardSet.add("InstalledPackages"); @@ -423,6 +425,7 @@ ${sfdc-util.SF-JAR.PATH} wildcardSet.add("GlobalValueSets"); wildcardSet.add("GlobalValueSetTranslations"); wildcardSet.add("StandardValueSets"); + wildcardSet.add("Queues"); Set folderSet = new TreeSet(); // Dir name to folder. folderSet.add("reports");