Skip to main content
Best answer

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


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.

Best answer by Danvers

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. 

View original
Did this topic help you find an answer to your question?
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

Danvers
Forum|alt.badge.img+12
  • Zapier Staff
  • 3731 replies
  • Answer
  • March 26, 2020

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. 


  • Author
  • Beginner
  • 1 reply
  • March 26, 2020

Thank you very much, I’ll try it