From 17fb58af49045c1063185fb2c09f64b9fc1e0de9 Mon Sep 17 00:00:00 2001 From: "A. G" Date: Sat, 19 Oct 2019 07:59:38 +0100 Subject: [PATCH] Add CustomTab to the list of types requiring special treatment when extracting profile --- .../scala/com/neowit/apex/actions/RetrieveMetadata.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/scala/com/neowit/apex/actions/RetrieveMetadata.scala b/src/main/scala/com/neowit/apex/actions/RetrieveMetadata.scala index 5c59d6d..9c28ce5 100644 --- a/src/main/scala/com/neowit/apex/actions/RetrieveMetadata.scala +++ b/src/main/scala/com/neowit/apex/actions/RetrieveMetadata.scala @@ -502,7 +502,10 @@ class BulkRetrieve extends RetrieveMetadata with JsonSupport { } //some types require special treatment and need other object types included in the package in order to return meaningful result - private val complexTypes = Map("Profile" -> Set("CustomObject"), "PermissionSet" -> Set("CustomObject")) + private val complexTypes = Map( + "Profile" -> Set("CustomObject", "CustomTab"), + "PermissionSet" -> Set("CustomObject", "CustomTab") + ) /** * retrieve single type and its members * @param metadataTypeName, e.g. ApexClass