Skip to main content
Question

Event Action

  • February 18, 2020
  • 3 replies
  • 390 views

Forum|alt.badge.img+2

Hello,   I’m trying to create an event Action to alert the buyer when a Reschedule_date is entered but only if the date is different than the Promise_Date.  I’m using the Purchase_order_line.   CAn this be done? 

 

 

 

3 replies

  • Superhero (Employee)
  • 1433 replies
  • February 19, 2020

You’ll have to add it to the code e.g.

BEGIN

IF ‘&NEW:RESCHEDULE_DATE’ != ‘&NEW:PROMISED_DATE’ THEN 

do something

END IF;

END;


Forum|alt.badge.img+2
  • Author
  • Do Gooder (Customer)
  • 1 reply
  • February 20, 2020

Thank you for the reply. 

I have an Event that captures what I need on the email Notification -  when a date changes execute Action 1

Action 1 was to send an email stating a date was changed. I now need to add a condition before the email is sent, which is the IF statement you sent above. 

Do I now create another Action?  Action 2 - which has the Execute Online SQL - 

The “do something” is send the Email in Action 1.   Thanks for your help. 

 

 


  • Superhero (Employee)
  • 1433 replies
  • February 23, 2020
aagostini wrote:

Thank you for the reply. 

I have an Event that captures what I need on the email Notification -  when a date changes execute Action 1

Action 1 was to send an email stating a date was changed. I now need to add a condition before the email is sent, which is the IF statement you sent above. 

Do I now create another Action?  Action 2 - which has the Execute Online SQL - 

The “do something” is send the Email in Action 1.   Thanks for your help. 

 

 

You could do something like this in an Execute Online SQL event action. 

BEGIN
IF '&NEW:RESCHEDULE_DATE' != '&NEW:PROMISED_DATE' THEN 
THEN command_sys.Mail(
 from_user_name_ => 'ifsapp',
 to_user_name_ => 'someone@example.com', 
 subject_ => 'Date has changed for Purchase order: &NEW:PURCHASE_ORDER_ID', 
 text_ => 'Purchase order: &NEW:PURCHASE_ORDER_ID has changed. New reschedule date is &NEW:RESCHEDULE_DATE. Promised date is: &NEW:PROMISED_DATE' 
); 
 END IF;
END;

 


Reply


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