Sorry, there was a missing closing bracket in the last expression. It is corrected now.
I assume so, since it is a Template that you posted.
I have never used SMS, so I don’t know how it works or how it is configured, or exactly what output you require. But you should be able to extrapolate from the code that I posted.