Skip to content

Commit

Permalink
Wildcard retrieve triggers, components and lwc
Browse files Browse the repository at this point in the history
Change the following components to be retrieved with wildcard in
package.xml manifest instead of using <sf:bulkRetrieve>:
 - Apex Triggers
 - Visualforce Compoents
 - Lightning Web Components,

When the above metadata types are retrieved with <sf:bulkRetrieve>,
the retrieval will include components that belong to managed packages
and that have their content hidden. Since these files contains have no
content for backup, it's a waste of time retrieving them. So instead we
will use the wildcard in package.xml for these metadata types, which
will limit components to non managed package components.
  • Loading branch information
Alan Morey committed Jun 6, 2022
1 parent 571a9db commit ae55702
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions force-meta-backup.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,8 @@ class BulkMetadataManifestBuilder extends ManifestBuilder {
'AIApplicationConfig',
'AnalyticSnapshot',
'AnimationRule',
'ApexComponent',
'ApexEmailNotifications',
'ApexTestSuite',
'ApexTrigger',
'AppMenu',
'AppointmentSchedulingPolicy',
'ApprovalProcess',
Expand Down Expand Up @@ -418,7 +416,6 @@ class BulkMetadataManifestBuilder extends ManifestBuilder {
'LeadConvertSettings',
'Letterhead',
'LightningBolt',
'LightningComponentBundle',
'LightningExperienceTheme',
'LightningMessageChannel',
'LiveChatAgentConfig',
Expand Down Expand Up @@ -730,7 +727,10 @@ class MiscMetadataManifestBuilder extends ManifestBuilder {
]

static final WILDCARD_TYPES = [
'ApexTrigger',
'ApexComponent',
'AuraDefinitionBundle',
'LightningComponentBundle',
'StandardValueSetTranslation',
]

Expand Down

0 comments on commit ae55702

Please sign in to comment.