I get a SQL INSERT error when trying to use the Patch function in PowerApps on a table, which has a foreign key that relies on the primary key of a second table that hasn't been Patched yet.
Which makes sense. How could I be allowed Patch a table with a blank dependency? So how can it be done?
Here are the FK/PK dependencies of all 5 tables:
So far I've tried:
- Allow NULL on the FK column
- Removed CASCADE from FK UPDATE and DELETE
Any further ideas? I specifically need example Functions. Thank you