Announcements
You're on the right track with using a custom table to log status changes in your Canvas App with a Dataverse backend. However, let's refine your approach to better leverage Dataverse and Power Automate, and consider some potential improvements:
Refined Approach:
event_id
(GUID, Primary Name): Use a GUID as the primary key for better scalability and uniqueness.timestamp
(DateTime, User Local): Store the date and time of the change in the user's local time.user_id
(Lookup to User): Use a lookup to the System User table to capture the user who made the change.action
(Option Set or Text): Use an option set (e.g., "Updated," "Created") for standardized actions or a text field for more flexibility.column_name
(Text): Store the logical name of the field that was updated.record_id
(Lookup to your main table): Use a lookup to the main table where the status fields reside.updated_value
(Text): Store the new value of the field.record_logical_name
(Text): store the logical name of the main table.organization_id
(Lookup to Organization Table): If you have multiple organizations, this is very important.
Advantages of This Approach:
Improvements and Considerations:
old_value
: You're right; capturing the old value can be complex and inefficient. If you need the old value, consider enabling auditing on the main table.Why One Flow Is Better:
Example Power Automate Flow (Simplified):
timestamp
: utcNow()user_id
: triggerOutputs()?['body/modifiedby']action
: 'Updated'column_name
: Current item from the apply to each.record_id
: triggerOutputs()?['body/yourMainTableId']updated_value
: get the updated value of the field.record_logical_name
: logical name of the main table.organization_id
: the organization id.By implementing this refined approach, you'll have a robust and efficient logging system for your status changes. Remember to tailor the solution to your specific requirements and thoroughly test it before deploying it to production.
André Arnaud de Cal...
294,125
Super User 2025 Season 1
Martin Dráb
232,871
Most Valuable Professional
nmaenpaa
101,158
Moderator