Skip to main content
December 7, 2025
Solved

Saving data to database

  • December 7, 2025
  • 9 replies
  • 0 views

I am new to Appian and I'm creating a form interface to save data to the database. I've gone through several of the tutorials and I created an Interface and a Process Model that will save data to the database. However, it only works when I launch it from the Process Model. How do I launch it from the Interface by clicking on the Submit button? 

I want to click Submit after filling out the Interface and have it fire up the process model to save to the database. 

    Best answer by shubhama926776

    You have User Input Task which creates a task after process starts. This makes users fill form twice.
    Replace your PM setup:
    Wrong: <Start> - <User Input Task> - <Write Records> - <End>
    Right: <Start Form> - <Write Records> - <End>

    Steps:
    Delete the User Input Task node
    In PM Properties -> Configure Start Form -> Select your interface
    Map form outputs to process variables
    Users click : "Start Process" -> fill form once -> Submit saves

    No code needed in Submit button. Start Form handles it automatically.

    9 replies

    shubhama926776
    December 8, 2025

    In your Process Model, add a Start Form node at the beginning. Configure it to use your interface. Map form outputs to process variables. Add a Write Records node after the form. Users start the process, fill the form, click Submit, and data saves. This is the simplest approach.

    https://www.youtube.com/watch?v=LhP7w4g3JJk

    Start Process from Interface

    https://docs.appian.com/suite/help/25.4/Start_Process_Smart_Service.html#astartprocess

    Ways to start process

    https://docs.appian.com/suite/help/25.4/Ways_to_Start_a_Process_From_a_Process.html

    December 8, 2025

    Thanks for the reply. I watched the Youtube and tried to configure the Process Start Form section of the PM Properties but it still doesn't work. I think I'm still not understanding the process and how it all comes together.

    In my Process Model, it's set up like this. <Start Node> - <User Input Task> - <Write Records> - <End Node>. So when I run 'Start Process for Debugging' from within the PM, it will flow through the nodes. It will execute the <User Input Task> node which opens up the form to fill out. Then when the user clicks Submit, it continues to the <Write Records> node which saves the data to the database. 

    From your comment, "Users start the process, fill the form, click Submit, and data saves", how do users start process? Shouldn't the Interface be itself start the process? Which is what I thought the youTube link teaches us to do. But this doesn't make sense the way it's set up. Won't the PM cause the user to fill out the form again since the first node is <User Input Task>? 

    Should the PM be revised to be just <Start Node> - <Write Records> - <End Node>? and the <Start Node> gets triggered by the Submit button of the interface? Also, is there any code that needs to be added to the Submit button of the interface so that it triggers the PM to start?

    shubhama926776
    December 8, 2025

    You have User Input Task which creates a task after process starts. This makes users fill form twice.
    Replace your PM setup:
    Wrong: <Start> - <User Input Task> - <Write Records> - <End>
    Right: <Start Form> - <Write Records> - <End>

    Steps:
    Delete the User Input Task node
    In PM Properties -> Configure Start Form -> Select your interface
    Map form outputs to process variables
    Users click : "Start Process" -> fill form once -> Submit saves

    No code needed in Submit button. Start Form handles it automatically.

    December 11, 2025

    you can expose interface service as statable service --->Process Model--->properties u can add interface and attach your write records service to flow with same record type for reference you can pre sample App Acme Auto Solution

    December 16, 2025

    Do you know how I can add this Acme Auto Solution project to my Appian for me to play with?

    December 16, 2025

    Access Environment (us.appian.community/.../home)
    App Catalog -->APPLICATIONS you can choose any app sample and first time Need to request for Deploy App to Workspace