Solved

When Creating a PDF_REPORT_CREATED Event action is there any rule which triggers first?

  • 29 March 2021
  • 3 replies
  • 429 views

Userlevel 2
Badge +2

When we are creating a generic event action and event action for a particular user to send an e-mail with a PDF report, is there any rule on what event will be triggered first? Does the system prioritize the event action which has “user” over the generic event action?

icon

Best answer by Tomas Ruderfelt 30 March 2021, 08:03

View original

This topic has been closed for comments

3 replies

Userlevel 7
Badge +19

There is no sorting of event actions when you execute an event.

However, it might be so that they are executed in the order they are created. But it is not 100% sure and the behavior can be changed anytime you add/change event actions etc.

Best thing is to make sure that you have conditions that always only give only one event action. Unless you want to execute several and if the order of them does not matter.

Userlevel 3
Badge +4

There is no specific rule, but it will check whether  there areany conditions defined for parameters when executing the event action. (Ex - REPORT_TITLE)

Userlevel 7
Badge +20

As @Tomas Ruderfelt mentioned, there’s no sorting of event action order of execution. According to implementation, actions will execute in the order of below query results

 

SELECT event_id, event_lu_name, fnd_event_action_type, description
FROM fnd_event_action
WHERE event_id = '&event_id'
AND event_lu_name = '&event_lu'
AND action_enable = 'TRUE';

 

Hope it helps.

Damith