Skip to main content

Automation Email - URL link broken


Forum|alt.badge.img

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!

9 replies

kuovonne
Forum|alt.badge.img+27
  • Brainy
  • 6002 replies
  • January 27, 2021

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.


Forum|alt.badge.img
  • Author
  • New Participant
  • 4 replies
  • January 27, 2021

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

Does anyone know if this will be fixed?


Forum|alt.badge.img+19
  • Inspiring
  • 3264 replies
  • January 27, 2021

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+27
  • Brainy
  • 6002 replies
  • January 28, 2021
Alex_Yershov wrote:

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}, "_", "\_")

Forum|alt.badge.img+19
  • Inspiring
  • 3264 replies
  • January 28, 2021
kuovonne wrote:

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+27
  • Brainy
  • 6002 replies
  • January 28, 2021
Bill_French wrote:

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.


Forum|alt.badge.img
  • Author
  • New Participant
  • 4 replies
  • January 28, 2021

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


  • Participating Frequently
  • 5 replies
  • July 1, 2022
kuovonne wrote:

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+27
  • Brainy
  • 6002 replies
  • July 1, 2022
Leo_Ahrens wrote:

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.


Reply