How to stop sending emails when Mytokens in that email doesn't have a value. | Community
Skip to main content
Level 2
March 11, 2021
Solved

How to stop sending emails when Mytokens in that email doesn't have a value.

  • March 11, 2021
  • 1 reply
  • 1923 views

Hello,

We have a Mytoken added in the email content which pulls the Meeting details(Date and Time) of an appointment. We have faced scenarios where the sometimes Mytoken doesn't pull any value and sends out the email blank(with empty space of Mytoken value).

 

Is there any way we can stop the email when Mytoken used in that email doesn't have a value?

 

So If Mytoken has value ---> Need to send the email

If empty value ---> No need to send the email to that record.

Can anyone please help ASAP.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

I suppose with "Mytoken" you are referring to a script token, right? And if that script wouldn't produce an outcome, you want to not send the email? - That's not possible.

It actually is possible, if not formally supported.

 

But I think we're getting ahead of ourselves because the code should be fixed first.

1 reply

Michael_Florin-2
Level 10
March 11, 2021

I suppose with "Mytoken" you are referring to a script token, right? And if that script wouldn't produce an outcome, you want to not send the email? - That's not possible.

 

But that script token would rely on some data points, wouldn't it? So you should rather look at your email sending Smart List and add a filter to only send if meeting date/time - or whatever that data point exactly is - are not empty.

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
March 11, 2021

I suppose with "Mytoken" you are referring to a script token, right? And if that script wouldn't produce an outcome, you want to not send the email? - That's not possible.

It actually is possible, if not formally supported.

 

But I think we're getting ahead of ourselves because the code should be fixed first.