Created
January 20, 2019 21:34
-
-
Save tsmalara/81c043fed1d737a60bb95ab1134e73b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List articles = [SELECT Id FROM knowledge__kav | |
WHERE PublishStatus='Online' | |
AND Language='en_US' | |
AND Id='ka4q000000005rpAAA']; | |
SearchPromotionRule s = new SearchPromotionRule(Query='Trailblazer', | |
PromotedEntityId=articles[0].Id); | |
insert s; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment