Hello @yllikrs
Is the ID that you mean the automated one generated by Dataverse or are you making a custom ID column.
I see that your Patch code is right and would be enough to run what you need.
As for your UpdateIf, this would be the right format but not sure if it's something that you need since it just updates the status but won't create a new row.
If(Form_EditScreen.Mode = FormMode.Edit,
UpdateIf(Inventories,
Status='Status (Inventories)'.Active
{Status: 'Status (Inventories).Inactive'}
));
If(Form_EditScreen.Mode = FormMode.Edit,
//Add your Patch code here.
);
UpdateIf(Inventories,
Status='Status (Inventories)'.Active
{Status: 'Status (Inventories).Inactive'});