Below the code you can use to get the file URL, however I have in one column the URL and in the next one the HyperLink() Function.
ParseJSON(thisRow.File._Merge().ToText(),path: "$.publicUrl").Hyperlink()
Initially I started with SetControlValue() and that works rather well. You name the controllers and this naming helps to avoid mistakes when adding the value like the first name. However the better option seems to me to use Format(). Although I had used this function before in this context, it was who showed me how he did it in his company. That inspired me to work out two solutions you see below. The invoices are fake. Just pdf’s to have something.
The article that explains a bit of the background you find below ⬇️
⤵️ how it looks in an email: