Fluent Commerce Logo
Docs
Sign In

Add Comment Workflow Template Overview

How-to Guide

Author:

Fluent Commerce

Changed on:

13 Dec 2023

Key Points

  • Configuration

Steps

Step arrow right iconAdd Comment Workflow Template

A Comment provides an additional piece of information to the entity it is related to. An Order can contain multiple comments associated with it.

Configuration

To configure "Add Comment" mutation add the following code:

1{"actions": { 
2    "secondary": [ { 
3            "type": "mutation", 
4            "label": "i18n:fc.om.orders.detail.userAction.addComment", 
5            "name": "createComment", 
6            "overrides": { 
7                "entityId": { 
8                    "defaultValue": "{{orderById.id}}" 
9                }, 
10                "entityType": { 
11                    "defaultValue": "i18n:fc.om.orders.index.userAction.entityType.order" 
12                } 
13            } 
14        } 
15    ] 
16}
17}

Language: json

Name: Example

Description:

[Warning: empty required content area]
Fluent Commerce

Fluent Commerce