SlideShare a Scribd company logo
How to have actionable
Feedback on Article?
Francois Lopitaux
Director, product management



   @flopitaux
   in/flopitaux
1 - Activate Chatter

 Activate Chatter on every Article Type
   – Navigate to Setup > Customize > Chatter > Feed Tracking
   – Select “Enable Feed Tracking”
2 - Create a custom Object to store the
feedback
 Create a custom object named “Article Feedback” with
  the following field:
   – Feedback Status
   – Article Title
   – Article Number
   – User Comment
   – Article Link


Note: You can also the custom object included in Public Knowledge
Base 2 AppExchange.
3 – Create Feed Item Trigger
       Create a Feed Item Trigger that will create a Article Feedback record every
        times that a user is going to post on an article using #feedback.
trigger CreateArticleFeedback on FeedItem (after insert) {

for (FeedItem f : trigger.new) {
String parentId = f.parentId;

    if (parentID.startsWith('kA') && f.type == 'TextPost' && f.Body.contains('#feedback')) {

    //Retrieve KnowledgeArticleVersion
    String q = 'select KnowledgeArticleId, articleNumber, title from KnowledgeArticleVersion where PublishStat
us = 'online' and Language = 'en_US'';
    q += 'and KnowledgeArticleId = ''+ parentId +'' limit 1';


        KnowledgeArticleVersion kav = (KnowledgeArticleVersion) Database.query(q);

        Article_Feedback__c afd = new Article_Feedback__c (
           Article_ID__c = parentId,
           Article_Number__c = kav.articleNumber,
           Article_Title__c = kav.title,
           Article_Link__c = 'https://login.salesforce.com/'+ kav.KnowledgeArticleId+ '?popup=true',
           Comments__c = f.Body
        );
        insert afd;

        }
    }
}
How to have actionable feedback with salesforce knowledge

More Related Content

PPTX
2. 엔티티 매핑(entity mapping) 2 2 엔티티매핑 2-2-4. 식별자 자동 생성(@generated-value) part2
PDF
A primer on Salesforce Knowledge - what why how!
PPT
Kcs author metrics
PPTX
Metrics that Wow! How Coremetrics Became the Customer Service Model of Success
PDF
Gail villanueva add muscle to your wordpress site
PPTX
Mobile Applications Development class 03-starting with flutter
PPTX
Building Potent WordPress Websites
PPTX
Web Quick Start: Under the Covers
2. 엔티티 매핑(entity mapping) 2 2 엔티티매핑 2-2-4. 식별자 자동 생성(@generated-value) part2
A primer on Salesforce Knowledge - what why how!
Kcs author metrics
Metrics that Wow! How Coremetrics Became the Customer Service Model of Success
Gail villanueva add muscle to your wordpress site
Mobile Applications Development class 03-starting with flutter
Building Potent WordPress Websites
Web Quick Start: Under the Covers

Similar to How to have actionable feedback with salesforce knowledge (20)

PPTX
SgCodeJam24 Workshop
PPTX
China Science Challenge
PPT
Custom Post Types and Meta Fields
PPTX
Automating Content Import
PDF
Building a Portfolio With Custom Post Types
PDF
Mobile themes, QR codes, and shortURLs
PDF
CMS content
PPTX
Orchard Dynamic Class Extensions
PDF
How to make a WordPress theme
PPTX
Abstracting functionality with centralised content
ODP
CodeIgniter PHP MVC Framework
PDF
WordPress as an application framework
PPTX
Powerful Generic Patterns With Django
PPT
Apps for Science - Elsevier Developer Network Workshop 201102
PPTX
Butter knife ppt
PDF
E2 appspresso hands on lab
PDF
E3 appspresso hands on lab
DOCX
How to convert custom plsql to web services-Soap OR Rest
PDF
Cours Authentification FireBase Sign/Sign Up
PDF
Django 1.10.3 Getting started
SgCodeJam24 Workshop
China Science Challenge
Custom Post Types and Meta Fields
Automating Content Import
Building a Portfolio With Custom Post Types
Mobile themes, QR codes, and shortURLs
CMS content
Orchard Dynamic Class Extensions
How to make a WordPress theme
Abstracting functionality with centralised content
CodeIgniter PHP MVC Framework
WordPress as an application framework
Powerful Generic Patterns With Django
Apps for Science - Elsevier Developer Network Workshop 201102
Butter knife ppt
E2 appspresso hands on lab
E3 appspresso hands on lab
How to convert custom plsql to web services-Soap OR Rest
Cours Authentification FireBase Sign/Sign Up
Django 1.10.3 Getting started
Ad

Recently uploaded (20)

PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Spectroscopy.pptx food analysis technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Empathic Computing: Creating Shared Understanding
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
cuic standard and advanced reporting.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
Spectral efficient network and resource selection model in 5G networks
Spectroscopy.pptx food analysis technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
Per capita expenditure prediction using model stacking based on satellite ima...
Mobile App Security Testing_ A Comprehensive Guide.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation_ Review paper, used for researhc scholars
Reach Out and Touch Someone: Haptics and Empathic Computing
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
MYSQL Presentation for SQL database connectivity
Dropbox Q2 2025 Financial Results & Investor Presentation
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Electronic commerce courselecture one. Pdf
Building Integrated photovoltaic BIPV_UPV.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Empathic Computing: Creating Shared Understanding
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
cuic standard and advanced reporting.pdf
Unlocking AI with Model Context Protocol (MCP)
Ad

How to have actionable feedback with salesforce knowledge

  • 1. How to have actionable Feedback on Article? Francois Lopitaux Director, product management @flopitaux in/flopitaux
  • 2. 1 - Activate Chatter  Activate Chatter on every Article Type – Navigate to Setup > Customize > Chatter > Feed Tracking – Select “Enable Feed Tracking”
  • 3. 2 - Create a custom Object to store the feedback  Create a custom object named “Article Feedback” with the following field: – Feedback Status – Article Title – Article Number – User Comment – Article Link Note: You can also the custom object included in Public Knowledge Base 2 AppExchange.
  • 4. 3 – Create Feed Item Trigger  Create a Feed Item Trigger that will create a Article Feedback record every times that a user is going to post on an article using #feedback. trigger CreateArticleFeedback on FeedItem (after insert) { for (FeedItem f : trigger.new) { String parentId = f.parentId; if (parentID.startsWith('kA') && f.type == 'TextPost' && f.Body.contains('#feedback')) { //Retrieve KnowledgeArticleVersion String q = 'select KnowledgeArticleId, articleNumber, title from KnowledgeArticleVersion where PublishStat us = 'online' and Language = 'en_US''; q += 'and KnowledgeArticleId = ''+ parentId +'' limit 1'; KnowledgeArticleVersion kav = (KnowledgeArticleVersion) Database.query(q); Article_Feedback__c afd = new Article_Feedback__c ( Article_ID__c = parentId, Article_Number__c = kav.articleNumber, Article_Title__c = kav.title, Article_Link__c = 'https://login.salesforce.com/'+ kav.KnowledgeArticleId+ '?popup=true', Comments__c = f.Body ); insert afd; } } }