Skip to Content

Event Filter not working with UDO

Nov 24, 2016 at 07:59 AM


avatar image

I am trying to catch a UDO's data add/update/delete event using SAP Business One 9.2 SDK UI and DI API in C#. If I don't use any event filter I can catch the event, the `FormTypeEx` matches and works like it should, but If I define a filter, even for `BoEventTypes.et_ALL_EVENTS` and add the FormTypeEx to the filter, I can no longer catch the event. It gets filtered. Shouldn't it just allow it?

I exported the UDO's form to Business One Studio, the form node has the FormType attribute as I expected, so it shouldn't be the problem. The filter's `FormTypeEx` string is the same, which I checked also when I turned the filters off (I caught the event and printed the `BusinessObjectInfo.FormTypeEx` and it was also the same...)

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Pedro Magueija Nov 24, 2016 at 11:36 AM

Hi Szabolcs,

What's the output of the "filters.GetAsXml()" after you've registered your filter? You can export the filter and check if it was properly set.

Pedro Magueija

LinkedIn | Twitter | Blog

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks, it was my error after all, I couldn't see the event filter in the XML.