You have two Custom Data Types (CDT): ACME_invoice and ACME_invoiceItem that have a flat relationship.
The invoice item table has a field that is a foreign key to the invoice table. You are leveraging the database to automatically generate their primary keys.
How should you structure the process model to add a new invoice and the new invoice items to the system?
When dealing with related data types where one has a foreign key to another, you must first create the record in the primary table (ACME_invoice) and then use the generated primary key to create related records in the secondary table (ACME_invoiceItem). This is why you first write to the ACME_invoice table, then update the foreign keys in a Script Task, and finally write to the ACME_invoiceItem table.
Appian Documentation: Relational Databases
Aliza
3 months agoVan
3 months agoVilma
4 months agoSherell
4 months agoReynalda
4 months agoYvonne
4 months agoTerrilyn
5 months agoEdelmira
5 months agoVenita
5 months agoLauna
5 months agoMel
5 months agoSolange
6 months agoMargurite
6 months agoJose
9 months agoPura
9 months agoCasey
8 months agoFrancesco
8 months agoTrinidad
9 months agoClorinda
9 months agoLennie
10 months agoMurray
10 months agoHillary
9 months agoChrista
9 months agoKarma
9 months agoEttie
10 months agoChauncey
9 months agoJanine
10 months agoFausto
10 months agoRoyce
10 months agoLuke
10 months agoFlo
11 months agoLuke
11 months ago