Back to all

HowTo's: Read - All properties are applicable to specific type of ABEntry

I am in Postman and have my environment set up and is communicating with the Database but when I copy the body over to PowerBI to create a query, I get the error "Token ',' expected." and the error points to the Schema.

"Schema": {
    "Scope": {
        "Fields": 1
    },
    "Criteria": {
        "SearchQuery": {
            "$AND": [
                {
                    "Key": {
                        "$TREE": "/AbEntry"
                    }
                },
                {
                    "AppliesTo": {
                        "$IN": "Individual" // Could be any type of AbEntry (Company, Individual, Contact)
                    }
                }
            ]
        }
    }
},

The documentation says: "Use the SchemaRead method to query the structure or metadata of entities in the database", but I don't see that in the JSON.

What am I missing?