I have this code to generate my list of accounts to check.
var accountIter = MccApp.accounts()
.withCondition("ManagerCustomerId IN ['123-456-7890']") //NB All sub-MCC's are included due heirarchy
.withCondition("ManagerCustomerId NOT_IN ['987-654-3210', '444-555-6666', '111-222-3333']") // Attempt to exclude sub-MCC's
.withLimit(50)
.get();
However, the list of accounts returned still contains those within the sub-MCC's. It looks like the NOT_IN is being ignored.
I've even tried listing them one by one to no avail.
.withCondition("ManagerCustomerId != '987-654-3210'")
.withCondition("ManagerCustomerId != '444-555-6666'")
.withCondition("ManagerCustomerId != '111-222-3333'")
How do I generate the list of accounts solely within one MCC and not within any of the specified child sub-MCC's?
(All accounts in child sub-MCC's of the excluded sub-MCC's would therefore also be ignored as well)
Perhaps if I can make it ignore ALL sub-MCC's that would work as I could then specify those sub-MCC's I do want specifically in my inclusion list or create copies of this script at the appropriate levels.
If this is not possible, can this then be a feature request? An option to exclude child accounts please?
Please help.