@dbaum It didn’t work as expected. Did you mean to have that http:// at the beginning? Anyhow, i tried without it and still didn’t work. I might have to just render the email from an HTML file directly. I get all kind of issues when trying to write these kind of expressions in directly in appsheet.
When I replied, I didn’t try or test anything–I only copied your existing expression into an HTML editor to create a sample for you. I see now that I somehow ended up repeating “http://”, which surely is incorrect.
I did just review some Send an email tasks in my own apps, and indeed they include:
<a href="http://...
However, I didn’t find any that use an expression to generate the hyperlink. So, I don’t have any examples that use either of the following:
Thanks for your response to this post. I have never quite understood the construction of links for emails nor when to encode and when its not needed.
Following your suggested HTML coding I get this:
<a href="http://<<CONCATENATE("https://www.appsheet.com/start/a5910859-fda5-445d-8d3c-48bbd1f3c963", LINKTOROW([_THISROW], Practitioners_Form))>>">Adjust this record</a>
I use it in an email body and it creates the link in the email just fine.
The issue I have is when I click the link, it attempts to open the page BUT it is missing the “:” after the “https” so the page cannot open. If I manually insert the “:” it then opens as expected.
I am nor sure what I need to do to retain the “:” in the final url. I tried adding the HTML encoded value for a colon. I tried wrapping the link in an ENCODEURL() function but these just make it worse.
So I’m not sure how to make an HTML template so I backed off that idea.
I started looking at the href link more closely and realized, at least in my use case, there was extra “stuff” not needed. I had an “http://” as well as an “https://”. Once I removed the “http://”, my email link worked great. I also realized I could just move the URL prefix outside of the pre-processed code (<<…>>) and I didn’t need the CONCATENATE() at all.
So after adjustments, I ended up with this reduced href version.
<a href="https://www.appsheet.com/start/a5910859-fda5-445d-8d3c-48bbd1f3c963
<<LINKTOROW([_THISROW],Practitioners_Form)>>">Adjust this record</a>
Concatenate() is mainly not needed when you have just text strings thanks to how the <<>> stuff works. You can place those wherever you want inside your templates