Skip to main content

Hi,

We are currently using Event Actions to send email from IFS and want to move to Report Rules for the greater flexibility offered and because it’s the IFS recommended way of sending email.

Taking Customer Orders as an example:

We want all of our emails to be driven from the Share - Email Order Confirmation screen which is opened when hitting Share - Email Order Confirmation (funnily enough!!):

Hitting OK generates the Customer Order Confirmation report PDF and emails the report to 123@email.com as expected.

The problem comes when printing the Order Confirmation

which brings up this screen (I’ll call it the Print Dialog screen):

If you hit OK then the Report Rule will run and will email the report to 123@email.com. We don’t want this. Ignore the Email box in the picture above, that is a different issue and doesn’t affect the question. 

What is needed is a condition on the Report Rule that prevents it from sending an email if the Report Rule has been fired from the Print Dialog screen.

Our best guess as to how to do this is that it appears that the PRINT_JOB_CONTENTS table has a row inserted when the OK button is pressed on the Print Dialog screen but not on the Email Order Confirmation screen.

The issue is that we’re not sure that the PRINT_JOB_CONTENTS table always has a row inserted BEFORE the Report Rule fires. If this is a synchronous process that always inserts into the PRINT_JOB_CONTENTS table first then we can check it against the Result Key (30002 in this case) and if there is a value in there don’t send the email.

We’d be grateful if someone could verify that:

  1. The PRINT_JOB_CONTENTS table is only inserted into when the Print Dialog screen is used and the OK button pressed. The Email Order Confirmation screen shouldn’t insert into the PRINT_JOB_CONTENTS table for this method to work.
  2. The PRINT_JOB_CONTENTS table is always inserted into before the Report Rule fires.

Of course if there is a better way of doing this that doesn’t use the PRINT_JOB_CONTENTS table then we’d be very happy to use that.

We are using IFS Cloud 21.2.20.20230503160232.0

Thanks,

Rich.

 

 

Be the first to reply!

Reply