New button triggering workflow

I was able to add a button on the detail view page and trigger a legacy action. The following post helps on how we can add a button and call functions/objects from the legacy.

This is what I implemented