Use DATA CATEGORY as a condition on a model

  • 1
  • Question
  • Updated 3 years ago
I'm working on a proof of concept for our company to start using Knowledge Articles. Ideally, I would like to show articles on a page's tab and filter the results relative to the parent record.

I'm trying to create a Knowledge article model and pass in conditions that are based on data categories. However, I'm not sure how to add the "WITH DATA CATEGORY" clause to the model's conditions.

Take for example this data category hierarchy for regions:
Regions__c
 Europe__c
  England__c
  France__c
  Italy__c
 NorthAmerica__c
  USA__c
  Mexico__c
  Canada__c

Say, I have an article type called "Visa Information", but I only want to show articles for relevant to countries in Europe. I can accomplish this in SOQL:
SELECT Title, IdFROM VisaInformation__kav
WHERE PublishStatus = 'Online'
AND KnowledgeArticleId in (SELECT Id FROM VisaInformation__ka)
WITH DATA CATEGORY Region__c BELOW Europe__c
Is it possible to do this same thing with a Skuid model?
Photo of Matt Mitchener

Matt Mitchener

  • 150 Points 100 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
I don't think Skuid supports the "Below" operator.  But you can create a REST model that builds a model on salesforce data that way - and you can pass your specific SOQL to it.