Skip to main content
Answer

Business event only triggers when a single record is added

  • April 13, 2023
  • 3 replies
  • 474 views

Forum|alt.badge.img

I have what I believe is a pretty simple business event. That rounds invoice lines for a specific customer for EDI purposes. However it only seems to trigger when a single line is added and fails to trigger when an invoice has more than 1 line on it. 

So basically it only triggers when a single record is inserted and doesn’t trigger when 2 or more are inserted.

Any ideas on why this fails?

 

Thanks

Best answer by ArunR22

You may need to all the key fields possible in the GI . And also change Raise Event to For Group of records and choose key field in Group Records By

3 replies

  • Freshman II
  • Answer
  • May 1, 2023

You may need to all the key fields possible in the GI . And also change Raise Event to For Group of records and choose key field in Group Records By


Forum|alt.badge.img
  • Author
  • Freshman II
  • May 1, 2023

Well I made all the changes you mentioned, It worked in my test environment. I’m not sure which change made it start working or if it needed all of the changes.

Either way, thank you very much for helping out!


  • Freshman II
  • May 2, 2023

Glad to know that it helped.

Actually we need both changes. If there are more than one record inserted

  1. For Each record is selected in Raise Event, no business event will be triggered.
  2. For Group Records is selected and there are key fields missing in GI, then for one record the business event will be triggered.
  3. For Group Records is selected and there are necessary key fields are included in GI then for all the records business events will be triggered