
Hi I have a canvas app with a button called 'Deactivate' when I click the button I want it to deactivate the record that I am in on the edit screen. How is this possible ?
@Anonymous
If you are talking about DataVerse; record please use below:
Patch(
TableName,
LookUp(
TableName,
TableNameid = recordidonyour),
{statecode: 'Status (TableName)'.Inactive,
statuscode: 'Status Reason (TableName)'.Inactive}
);