Skip to main content
April 3, 2024
Question

When I click on a button, it will generate a comment and we are saving it in a comment table. In particular scenarios, when we click on the same button, it will generate multiple comments and we need to save it in a comment table itself. So how can w

  • April 3, 2024
  • 5 replies
  • 0 views

When I click on a button, it will generate a comment and we are saving it in a comment table. In particular scenarios, when we click on the same button, it will generate multiple comments and we need to save it in a comment table itself. So how can we handle in appian?

    5 replies

    varuntejg243705
    April 3, 2024

    Hi [mention:142e415315644989b294e1d75107c1e9:e9ed411860ed4f2ba0265705b8793d05] ,

    As you have told you want to save multiple comments into Comments table,
    if you are doing this in interface level, you need to make rule input - Comment  as Array,
    and when you use the same interface in the Process Model, use the comment PV multiple.

    So that you can store multiple values into the records.

    venkatrea696188
    April 3, 2024

    How do you want to save it in database , Comma Separated or as a new row? 

    April 3, 2024

    Hi [mention:5abb751204a145abaeb28c7bf620b9d5:e9ed411860ed4f2ba0265705b8793d05] ,

    I want to save it as a new row..

    venkatrea696188
    April 3, 2024

    Then it's Simple right? just like Varun suggested Make the Variable as Multiple . Or  we missing something

    June 16, 2024

    How did you setup this, im trying to setup a communication module inside each request to be able to users to chat, but I'm not able to setup the interface to gather new comments and show old. My comment table is linked many to one to my main request table which contain the request id which need to be used as related action.