How to create links in grafana dashboard?

i want to create a dashboard with list of canonical id’s and when i click one of the id’s it should go to sublime web interface and show that specific message details. I found how to add the link, but what should i add so that it will go to corresponding message details .I can add specific id’s manually which is already triggered and it will to corresponding message details but it will not take when new flagged message comes/real time.