[Event System] Return/Returned Record are not working

Forge Component
(37)
Published on 11 Jun by leonardo.fernandes
37 votes
Published on 11 Jun 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

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.

Solution

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