Best answer

Zapier & Discord Error: {"content": ["Must be 2000 or fewer in length."]}

  • 25 March 2020
  • 2 replies
  • 716 views

Hello everyone,

 

I created a zap to get my mails into discord, and the problem is that some of my mails are too long to be displayed, there are more than 2000 characters.

Is there a way to know how many characters I have in my message ? 

 

Thanks for your answers.

icon

Best answer by Danvers 26 March 2020, 12:04

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Userlevel 7
Badge +12

Hi @Damien

 

It sounds like the Formatter by Zapier is going to be your friend for this one! If you select the ‘Text’ action there is an option which can count the words in the field (though not the characters), but the one that I think you’ll need is the ‘Truncate’ option. 

This will cut a field down to the number of characters that you specify

1d8ba8ff3deed2e589d8362be223da39.png
(View image larger)

 

So if you add this step in your Zap, and then in the Discord step, use the output of the Formatter step, then the number of characters will always be 2000 or less. 

Thank you very much, I’ll try it