Here is a solution for a similar requirement. It should work for you...
... Just change topic to the path of your id