
I have a created a model driven app and I want to know how to add a button to the command bar that allows the user to submit there record for approval.
You could use a modern command bar button, and patch the record to update the status to "awaiting approval" - then trigger a flow to send an adaptive card, or an in app notification to the approver. Then following them clicking "approve" update the record to "approved"
You could even keep it super simple, use the command button to update the record status to "awaiting approval" and have a yes/no field on the form with column security set up to only allow approvers to approve it.
the actual patching can be a challenge, if you try to patch the status column, you will get an error.
The approach I tend to take is set a text field to a specific value, then patch that value, which would trigger a flow to update the status to the new value