Skip to main content
Solved

Business event only triggers when a single record is added


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

View original
Did this topic help you find an answer to your question?

3 replies

  • Freshman II
  • 2 replies
  • 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 I
  • 26 replies
  • 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
  • 2 replies
  • 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

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings