Sebastiaan de Man: Create Customized Knowledge Articles with Flow

Starting with a Salesforce Knowledge article, insert variables using the {!VariableName} convention like this:

Screenshot 2019-07-02 at 12.02.39.png

Create a flow that has these variables as … variables

Screenshot 2019-07-02 at 12.03.51.png

Use the recordId variable to get the KnowledgeArticle record, based on MasterVersionId:

Screenshot 2019-07-02 at 12.05.25.png

Get the fields to show:

Screenshot 2019-07-02 at 12.05.33.png

Set the variables with the values you need to use (I used default values for this flow)

Make a screen component that show the fields:

Screenshot 2019-07-02 at 12.07.36.png

Add the flow component to the Article detail page in the community, pass over the recordId:

Screenshot 2019-07-02 at 12.08.32.png

And it will magically replace all variables in the text:

Screenshot 2019-07-02 at 12.09.16.png

Additional Resources

Salesforce Knowledge and Flow Wiki Page

The Flow Troubleshooter Pattern is useful for creating and managing large numbers of custom nodes without having to manually add a flow element for each one.

Notify of
Inline Feedbacks
View all comments