Create process model to create a record type "Order" and multiple record types "Product Variation"

Hello everyone. I am new in Appian and am trying to build a web app "Canteen" as part of my learning path.

Couldn't find anything in other posts as I don't know how to search it.

So my issue is the following...

I have a Canteen Menu where each user can select products to add in the cart. On the interface I build a list of

product variations (with a tempId in order to update something since I haven't saved anything on DB). When I press

the "Place Order" button, I want to create a new "Order" with some fields and then get the ID of the created record.

Then I will use the orderId and create the related "Product Variations" from the selected products list.

How can I do this in the process model?

     

  Discussion posts and replies are publicly visible

Parents Reply Children
  • I was able to solve my problem. All what Stefan and Harshit said were correct! Thank you!! I had another issue why it wasn't working. It was because I was not initializing the process model when the Canteen Menu (Interface) was opened so I had to make the Interface "Create Order" look like the Canteen Menu. Unfortunately I couldn't have the same visual as in the previous Canteen Menu page but it was close enough. I hope at some point different properties of layouts to be common. It will give people the flexibility to use the one with the correct functionality without "worrying" about how it looks.

    Also had to fix some a!submitLink to a!dynamicLink as it was messing with the submission of the form.