Custom links to run procedures

Isn’t this very similar to the question you asked 2,5 years ago?
Here:Activity Listener Link to my specific app
Maybe you could improve your learning curve.