0

I'm trying to retrieve Subscriber's public lists only, but it keeps returning public lists + a private list called "All Subscribers". I've tried both following methods but neither worked, any help would be appreciated. Thanks!

METHOD 1:

var subLists = subObj.Lists.Retrieve({
                Property: "Type",
                SimpleOperator: "equals",
                Value: "Public"
             })

METHOD 2:

var subLists = subObj.Lists.Retrieve({
                  LeftOperand: {
                      Property: 'ListClassification',
                      SimpleOperator: 'equals',
                      Value: 'PublicationList'
                  },
                  LogicalOperator: 'AND',
                  RightOperand: {
                      Property: 'Type',
                      SimpleOperator: 'equals',
                      Value: 'Public'
                  }
              })
4
  • I know next to nothing about SFMC, but at least for ruling out purposes can you add (however it should actually be written) "Type" "does not equal" "Private" and see what you get?
    – Moonpie
    Commented May 11, 2022 at 20:52
  • I already tried: "Type" "notEquals" "Private" too. It didn't work either :(
    – Simon
    Commented May 11, 2022 at 21:00
  • Oh, well. It was worth a shot. I thought that's all I had, but here's one more: Are you certain that there is not also a Public list called "All Subscribers" that is being returned? It sounds to me that that would be an OOB one.
    – Moonpie
    Commented May 11, 2022 at 21:22
  • I console.log() all the returned lists, there is only one "All Subscribers" list whose type is "Private"
    – Simon
    Commented May 12, 2022 at 0:17

0

You must log in to answer this question.

Browse other questions tagged .