Created
August 3, 2014 04:26
-
-
Save daniel-c05/4cb304df50ea3df842c4 to your computer and use it in GitHub Desktop.
Filter MCC Accounts by Label
This file contains 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
var LABEL = "Your_label"; | |
function main () { | |
var accountIterator = MccApp.accounts() | |
.withCondition("LabelNames CONTAINS '" + LABEL + "'") | |
.get(); | |
Logger.log("Total Number of accounts under label (via totalNumEntities): " | |
+ accountIterator.totalNumEntities()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment