Questions & Answers about Tässä viestissä on linkki.
Tässä is the inessive case of tämä (this).
- tämä = this (basic dictionary form)
- tässä = in this / here (in this place/thing)
Because the sentence talks about something being inside the message, Finnish uses a location form (tässä) rather than the plain demonstrative (tämä).
Viestissä is viesti (message) in the inessive case, which means in something.
- viesti = message
- viestissä = in the message
The ending -ssa/-ssä is the inessive ending. It corresponds most often to English in.
This is vowel harmony. Finnish chooses -ssä if the word contains front vowels (ä, ö, y).
Since viesti contains e (a neutral vowel), the choice depends on the “frontness” of the word pattern, and Finnish uses -ssä here: viestissä.
(Practical rule: you’ll often just learn the inessive as a whole form; with ä/ö/y you can be confident it will be -ssä.)