Skip to main content
Solved

How to control the scheduled email?


Rucha Naik
Forum|alt.badge.img+5

Hi,

I have a functionality which automatically triggers an email (a reminder sent on a daily basis) when the work permit of the employee is expired in 30 days.

Now we added a checkbox , when it is checked the email should not be sent any more. I tried to implement this with below steps:

  1. Created a control procedure : layout
  2.  Below code in the template(the work_permit_expiration date is mandatory):
    if @work_permit_check_box = 1 /*when checked*/ begin set @work_permit_expiration = NULL /*null the date*/ end

However, this seems not do perform any changes.

Where am I doing wrong? Or is there any other simple way to execute it.

Best answer by Mark Jongeling

Hi Rucha,

A Layout procedure cannot alter data that is filled in. You'll need a Default procedure to do that. More info here: https://docs.thinkwisesoftware.com/docs/sf/business_logic

Hope this helps!

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • 3940 replies
  • Answer
  • August 17, 2022

Hi Rucha,

A Layout procedure cannot alter data that is filled in. You'll need a Default procedure to do that. More info here: https://docs.thinkwisesoftware.com/docs/sf/business_logic

Hope this helps!


Rucha Naik
Forum|alt.badge.img+5
  • Author
  • Partner
  • 68 replies
  • August 17, 2022

Oops!! yes . Thanks for quick reply Mark.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings