Issue #20621:add type argument
Issue #20628:move event creation from trigger to function and add BySO arg
Merge pull request #13 from garyhgohoos/20621

Issue #20621:add type argument
Merge pull request #14 from garyhgohoos/20628

Issue #20628:move event creation from trigger to function and add BySO a...