Event called from Business Rules not Defined

John Prouty
Kilo Guru

I am now getting this error when saving a record on my custom table:

Error Message: Access to event 'x_525091_it_sw_enh.ITSWR.AssignedTo.Chg' from scope 'IT SW Enhancement' has been refused. The event is not defined.

I set up a Business Rule:

find_real_file.png

find_real_file.png

I registered the Event:

find_real_file.png

And I created the Notification:

find_real_file.png

find_real_file.png

find_real_file.png

The Email Template already exists and work fine in another situation, so it should not impact this logic.

How do I set everything up so that this works?

1 ACCEPTED SOLUTION

John Prouty
Kilo Guru

I tried everything you suggested and some other changes.  None of them worked.  I have decided to address this another way.

View solution in original post

4 REPLIES 4

Allen Andreas
Administrator
Administrator

Hi,

Please try just calling the event using the "Suffix" field value (as seen in the event settings/screenshot). That may be the issue.

Also, for your eventQueue call in the business rule, please just try with 4 parameters, just to see. You currently have 5.

So just:

gs.eventQueue('ITSWR.AssignedTo.Chgd', current, previous.assigned_to, 'Email');

if that doesn't work...then perhaps specify your scope like you did in the event name, but again, just use 4 parameters:

gs.eventQueue('x_525091_it_sw_enh.ITSWR.AssignedTo.Chgd', current, previous.assigned_to, 'Email');

Also, your record should be "current", but you can still utilize "previous.assigned_to".

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi,

I just wanted to check-in on this and see how things are going?

If my reply above helped guide you correctly, please mark as Helpful & Correct.

Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

John Prouty
Kilo Guru

I tried everything you suggested and some other changes.  None of them worked.  I have decided to address this another way.

Alright. Sorry it wasn't helpful.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!