Skip to main content
Solved

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

  • March 29, 2021
  • 3 replies
  • 520 views

Forum|alt.badge.img+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?

Best answer by Tomas Ruderfelt

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.

This topic has been closed for replies.

3 replies

Forum|alt.badge.img+21
  • Superhero (Employee)
  • Answer
  • March 30, 2021

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.


Rajitha Herath
Sidekick (Partner)
Forum|alt.badge.img+7
  • Sidekick (Partner)
  • March 30, 2021

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


dsj
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • March 30, 2021

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