@ Steve Redshaw
Here’s a link to several posts that have examples on how to do this. I hope this helps.