"Error": "Entity provided in request is not an enabled top-level entity"
Summary:
We want to create a template with a custom list in Redwood using the API information:
"…/crmRestApi/resources/latest/addressGeographies?fields=GeographyIdentifierId,GeographyValue,GeographyLevel2Value,GeographyType&q=CountryCode="DO"&onlyData=true&limit=500&offset=0"
But when using the standard Redwood search function with the API:
" …./crmRestApi/searchResources/11.13.18.05/custom-actions/queries"
, and posting the JSON:
{
"entity": "addressGeographies",
"limit": 100,
"fields": [
"GeographyValue",
"GeographyValue",
null
],
"keywords": "",
"q": {
"op": "$and",
"criteria": [
{
"op": "$eq",
"attribute": "CountryCode",
"value": "DO"
}
]
},
"language": "en",
"keywordsFields": [
"GeographyValue"
]
}
We get the following error:
{"Error": "Entity provided in request is not an enabled top-level entity"
}
How can we access addressGeographies using the custom-actions/queries function?