in src/main/scala/managehelpcontentpublisher/sfknowledge/Main.scala [68:90]
def getSfKnowledgeArticles(
sfAuthentication: SfAuthDetails
): Either[Error, KnowledgeArticles.RootInterface] = {
val limit = 200;
val articlesQuery =
"SELECT Id,Body__c,PublishStatus,UrlName,(Select topic.name from TopicAssignments) from Knowledge__kav " +
"where ID='ka03N0000005quMQAQ'"
val articlesQueryResponse =
doSfGetWithQuery(sfAuthentication, articlesQuery)
println("ARTICLE queryResponse:" + articlesQueryResponse)
val articlesResponse =
decode[KnowledgeArticles.RootInterface](articlesQueryResponse) map { billingAccountsObject =>
billingAccountsObject
}
println("ARTICLE response:" + articlesResponse)
articlesResponse
}