Creating a KB Article via a FlowLast Updated: 05/04/2018 Introduced in Version: 2.0
To map a complex object within the Mapping Editor, drag the anchors for selected outputs to the inputs which should be populated with that data.
Our next step will transform the output of [Form] Add Article Form into an Article object that can be saved in the database. To do this, add the Add Article component.
In the Toolbox panel, in the category Integration > Internal Services > KnowledgeBaseService, select an AddArticle component and drag it to the workspace. Connect the outcome paths in the flow.
To map the inputs which will create the Article object, select Add Article and, in the Properties panel, click the link Edit Input Mappings.
Our Article object has three properties: the folder containing the entity, the title and the description. Because the folder containing the entity is not provided by our form, enter it manually by changing the mapping type of entityFolderId to Constant . . .
. . . and giving it the value: “SYSTEM/KNOWLEDGE BASE.”
Our Article object’s remaining properties will be created from the output of [Form] Add Article Form. To map these outputs, drag the anchor from each output to the field that will receive it as input.
This completes the mapping for our Account object. Click OK to save this mapping and close the Mapping Editor.
This completes our flow, so save it and run it in the Debugger.
The information entered into this form is sent to the Add Article step, which will in turn create an Article object
We click the FLOW tab to view the flow’s execution.
To verify that the article is added, return to the portal and select the Knowledge Base folder, where the article displays.
Need more help with:
Creating a KB Article via a Flow?