48
Views
2
Comments
Solved
[Event System] Return/Returned Record are not working
Question
event-system
Web icon
Forge asset by Leonardo Fernandes

Hi

We updated our environment from OS10 to OS11, and update the actions that we used for the new ones, but now when we try return something it don't work. (Expecting a IRecord event return, none was provided)

I make some tests and notice that if i use the Deprecated_Trigger and Deprecated_TriggerHandler with the new actions of ReturnRecord and ReturnedRecord it work.

I already try reinstall the Event Systems but no success


Greetings,
Pedro Vieira

Test1.oap
2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Hello Pedro.

You shouldn't be using the EventStack extension directly. There are wrapper actions in the Events module - and you'll that they all have been deprecated.

The new Events API has a single Return action, and the return value is an output of the InvokeById and InvokeByName actions. Unfortunately, passing structures will no longer be supported, but the same thing can be accomplished by passing JSON objects.

I've changed your test to use the new APIs.

Test1.oap
2018-10-25 14-51-08
pmmv999

Hi Leonardo,


Thanks for your quick feedback, and also for the example.

I see new good things to do with it, but very things to change ahah


Great Component !


Greetings,

Pedro Vieira

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.