I want to make sure I design this part the best way possible.
I have a Canvas App with Dataverse backend that has multiple sections each with it's own status field, and an overall status field.
I need a way to get the date/time stamp when any of these fields get updated, sometimes, move than 1 may be updated on a given save.
I believe what I want to do is create a custom table something like this:
CREATE TABLE event_status_log (
event_id INT AUTO_INCREMENT PRIMARY KEY,
timestamp DATETIME NOT NULL,
user_id INT,
action VARCHAR(255) NOT NULL,
column_name VARCHAR(255) NOT NULL,
record_id INT,
old_value TEXT, (probably can not capture this, so this would be removed),
updated_value TEXT,
);
I would also create multiple power automate(s) to run when these status fields are updated/changed, and populate the table above appropriately.
Is this the best way to do this? Is there a better way. Also is there any other fields I should have and capture in the table.
Thank you,
Steven Stuart