Skip to main content

Automation Email - URL link broken

  • Jan 27, 2021 4:14 PM UTC
  • 9 replies
  • 277 views

Alex_Yershov
Forum|alt.badge.img+4

We have a URL field where we insert long Google Doc url’s. We then have an email automation working but when the email arrives, the link is broken - most of it shows as a hyperlink but the last 5-10 characters are plain text.

Is this a character count limitation within Airtable Automations or is there anything we can do to fix it?

Thank you!

This topic has been closed for replies.

9 replies

kuovonne
Forum|alt.badge.img+29
  • Brainy
  • Jan 27, 2021 5:06 PM UTC

Are there any special characters in the url, such as underscore characters?

When Airtable automations send out emails, they parse markdown text formatting in a strange way that can break links.


Alex_Yershov
Forum|alt.badge.img+4
  • Author
  • Participating Frequently
  • Jan 27, 2021 5:25 PM UTC

Yes, thank you! I just noticed that the break happens at the first underscore…

Does anyone know if this will be fixed?


Bill_French
Forum|alt.badge.img+19
  • Inspiring
  • Jan 27, 2021 11:51 PM UTC

This is two of the many reasons we avoid using Airtable automation to dispatch emails. Instead, we push all dispatch processes to a webhook in Workspaces where we can conceal the lengthy URLs as embedded HTML.

Lacking that, we have used a URL shortner on the Google URLs applied in Airtable using a simple script automation. This makes it possible to eliminate these massive URLs while making the direct emails (a) cleaner and (b) actually work.


kuovonne
Forum|alt.badge.img+29
  • Brainy
  • Jan 28, 2021 4:46 AM UTC

Yes, thank you! I just noticed that the break happens at the first underscore…

Does anyone know if this will be fixed?


Try this formula to escape the underscores:

SUBSTITUTE({Original Url}, "_", "\_")

Bill_French
Forum|alt.badge.img+19
  • Inspiring
  • Jan 28, 2021 5:08 AM UTC

Try this formula to escape the underscores:

SUBSTITUTE({Original Url}, "_", "\_")

I thought about this approach and imagined that it would require an unescape process at some point or the URLs would be broken. Would the email clients all naturally unescape these urls?


kuovonne
Forum|alt.badge.img+29
  • Brainy
  • Jan 28, 2021 6:55 AM UTC

I thought about this approach and imagined that it would require an unescape process at some point or the URLs would be broken. Would the email clients all naturally unescape these urls?


I only used the escaped urls when sending the url via an Airtable email automation so that the url is correct when the email arrives at the client. This thread has more info.


Alex_Yershov
Forum|alt.badge.img+4
  • Author
  • Participating Frequently
  • Jan 28, 2021 5:12 PM UTC

@kuovonne Thank you! The formula worked and fixed the email URL issue :grinning_face_with_smiling_eyes:


  • Participating Frequently
  • Jul 1, 2022 6:35 PM UTC

I only used the escaped urls when sending the url via an Airtable email automation so that the url is correct when the email arrives at the client. This thread has more info.


Is there a script/formula within the “Send an email” / “Message” automation action input box that will resolve this?

Or is the only solution to create a new field with a formula to escape the underscores?


kuovonne
Forum|alt.badge.img+29
  • Brainy
  • Jul 1, 2022 7:26 PM UTC

Is there a script/formula within the “Send an email” / “Message” automation action input box that will resolve this?

Or is the only solution to create a new field with a formula to escape the underscores?


You cannot use formula fields in automations.

You could potentially use a scripting action to do this. However, most people (including some script writers) find it easier to create a new formula field in the table.