Skip to content

Commit

Permalink
Retrieve profile access settings for managed package components
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperkristensen committed Sep 1, 2015
1 parent 74f57da commit a224568
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions retrieve.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,8 @@ module.exports.retrieve = function() {
});
} else {
return xmlNames.map(function(xmlName) {
if (["AnalyticSnapshot", "RemoteSiteSetting", "ApexTriggerCoupling", "Folder", "PackageManifest", "CustomObjectSharingRules", "CustomObjectOwnerSharingRule", "CustomObjectCriteriaBasedSharingRule", "AutoResponseRule", "AssignmentRule", "EscalationRule", "Translations", "CustomObject"].indexOf(xmlName) != -1) {
console.log("ListMetadata " + xmlName);
return conn.metadata.list({type: xmlName}).then(asArray);
}
return new Promise([{type: xmlName, fullName: "*"}]);
console.log("ListMetadata " + xmlName);
return conn.metadata.list({type: xmlName}).then(asArray);
});
}
});
Expand Down

0 comments on commit a224568

Please sign in to comment.