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
  • Am not sure if what I wrote inside the Records Input is correct...

    'recordType!{a6586e03-53d4-47ea-8f21-52d658700d3b}ICOS Order'(
    'recordType!{a6586e03-53d4-47ea-8f21-52d658700d3b}ICOS Order.fields.{75c04d1e-ef37-4f51-83b1-cabfb7b169c0}id': 1,
    'recordType!{a6586e03-53d4-47ea-8f21-52d658700d3b}ICOS Order.fields.{cdfc5c50-c0ab-488f-9059-85bf4df21277}message': pv!message,
    'recordType!{a6586e03-53d4-47ea-8f21-52d658700d3b}ICOS Order.fields.{d6e316f2-f6a2-4c1c-9ecf-0f09487e43eb}orderStatusId': 1,
    'recordType!{a6586e03-53d4-47ea-8f21-52d658700d3b}ICOS Order.fields.{0ed5711c-0959-43e6-be09-ccc9b4439ed8}price': pv!orderTotal
    )

    There are also other fields createdBy which is the User id (person who places the order) and createdOn.

    Also here tried to do what you told me. I believe this is ok.

Children
No Data