I have a form that performs standard CRUD operations. I'm trying to figure out a way to use one save icon to do all the CRUD work.
This form is only updating one table in the db...

The form is built using Cascading Dropdown Lists...

The BOM Action will determine what fields are used.





As you can see "Component" is a common denominator for all selections. "BOM Ref" is use is all selections except for the "Add" BOM Action.
I'm not really sure how to accomplish this. I'm not sure If I need to make use of variables or an IF or Switch statement for the Patch, OR...is this even possible with this design?
I'm looking for a roadmap to success with this one. I feel I'm getting better with Powerapps and this particular app taught many valuable lessons. This submission form has me perplexed.
Any help would be greatly appreciated.